check_pandoc | R Documentation |
This function adds context to rmarkdown::pandoc_available()
and provides
an error message directing the user to download the latest version of pandoc
or RStudio Desktop.
check_pandoc(quiet = TRUE, pv = "2.11", rv = "1.4")
quiet |
if |
pv |
the minimum pandoc version |
rv |
the minimum rstudio version (if available) |
# NOTE: this is an internal function, so there is no guarantee that the usage
# will remain the same across time. This is merely for demonstration purposes
# only.
# Check for pandoc ----------------------
asNamespace("sandpaper")$check_pandoc(quiet = FALSE)
# Message emitted when pandoc cannot be found --------
try(asNamespace("sandpaper")$check_pandoc(quiet = FALSE, pv = "999"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.