Locate a specific Pandoc version installed with this package
Source:R/pandoc-install.R
pandoc_locate.Rd
This package helps install and manage Pandoc binaries in a specific folder.
This function helps with finding the path to those specific versions of Pandoc.
See pandoc_bin()
for another way of getting paths to pandoc
binaries
Arguments
- version
Version to use. Default will be the
"default"
version. Other possible value areA version number e.g
"2.14.1"
The nightly version called
"nightly"
The latest installed version with
"latest"
Pandoc binary shipped with RStudio IDE with
"rstudio"
Pandoc binary found in PATH with
"system"
Examples
# where is the default active version located ?
pandoc_locate()
#> [1] "~/.local/share/r-pandoc/2.18"
pandoc::pandoc_is_installed("2.11.4")
#> [1] TRUE
# where is a specific installed version located
pandoc_locate("2.11.4")
#> [1] "~/.local/share/r-pandoc/2.11.4"
# return root folder of installed versions
pandoc_locate(NULL)
#> [1] "~/.local/share/r-pandoc"