View source: R/pandoc-activate.R
pandoc_activate | R Documentation |
This function will set the specified version as the default version for the session. By default, the default active version in the most recent one among the installed version (nightly version excluded.)
pandoc_activate(
version = "latest",
rmarkdown = getOption("pandoc.activate_rmarkdown", TRUE),
quiet = FALSE
)
version |
This can be either:
|
rmarkdown |
if |
quiet |
|
invisibly, the previous active version.
If the version
to activate is not yet installed, the user will be prompted
to choose to install the version.
When the package is loaded, an active version is set to the first Pandoc binary found between:
the latest Pandoc version installed with this package (e.g "2.14.2"
)
the version shipped with RStudio IDE. (version = "rstudio"
)
a version available in PATH (version = "system"
)
# activate version 2.18, including for use with rmarkdown package
pandoc_activate("2.18")
# activate only for this package functions and not rmarkdown
pandoc_activate("2.18", rmarkdown = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.