Searches for the pandoc
executable in a few places and use the
highest version found, unless a specific version is requested.
find_pandoc(cache = TRUE, dir = NULL, version = NULL)
cache | Whether to search for |
---|---|
dir | A character vector of potential directory paths under which
|
version | The version of Pandoc to look for (e.g., |
A list containing the directory and version of Pandoc (if found).
Usually you do not need to install Pandoc if you use the RStudio IDE,
because the IDE has bundled a version of Pandoc. If you have installed a
version of Pandoc by yourself and want to use this version instead, you may
use the dir
argument of this function.
rmarkdown::find_pandoc()#> $version #> [1] ‘2.3.1’ #> #> $dir #> [1] "/usr/lib/rstudio-server/bin/pandoc" #>rmarkdown::find_pandoc(dir = '~/Downloads/Pandoc')#> $version #> [1] ‘2.3.1’ #> #> $dir #> [1] "/usr/lib/rstudio-server/bin/pandoc" #>rmarkdown::find_pandoc(version = '2.7.3')#> $version #> [1] ‘0’ #> #> $dir #> NULL #>