Skip to content

Commit c5f9297

Browse files
brianperdomocderv
andauthored
Throw error in pandoc_convert() when pandoc isn't available (#2600)
Co-authored-by: Christophe Dervieux <[email protected]>
1 parent 511178c commit c5f9297

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: rmarkdown
33
Title: Dynamic Documents for R
4-
Version: 2.29.1
4+
Version: 2.29.2
55
Authors@R: c(
66
person("JJ", "Allaire", , "[email protected]", role = "aut"),
77
person("Yihui", "Xie", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0645-5666")),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
rmarkdown 2.30
22
================================================================================
33

4+
- `pandoc_convert()` will throw an error if Pandoc is not available (thanks, @brianperdomo, #2600).
5+
46

57
rmarkdown 2.29
68
================================================================================

R/pandoc.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ pandoc_convert <- function(input,
4646
verbose = FALSE,
4747
wd = NULL) {
4848

49-
# ensure we've scanned for pandoc
50-
find_pandoc()
49+
# ensure pandoc is available
50+
pandoc_available(error = TRUE)
5151

5252
# evaluate path arguments before changing working directory
5353
force(output)

0 commit comments

Comments
 (0)