Skip to content

Commit

Permalink
signal an error when buiding rmarkdown vignettes but Pandoc is not av…
Browse files Browse the repository at this point in the history
…ailable, unless the vignette is build during R CMD check (in which case a message is emitted instead)
  • Loading branch information
yihui committed Jun 23, 2021
1 parent 05ccb07 commit ab4ca53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-vignettes.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ register_vignette_engines = function(pkg) {
if (pandoc_available()) {
vweave_rmarkdown(...)
} else {
(if (is.na(Sys.getenv('CI', NA))) message else stop2)(
(if (is_R_CMD_check()) message else stop2)(
'Pandoc is required to build R Markdown vignettes but not available. ',
'Please make sure it is installed.'
)
Expand Down

0 comments on commit ab4ca53

Please sign in to comment.