pandoc_install {pandoc} | R Documentation |
Install a pandoc binary for Github release page
Description
Binary releases of Pandoc are available on its release page. By default, this
function will install the latest available version.
pandoc_install_nightly()
is a wrapper for pandoc_install("nightly")
.
pandoc_update()
is an alias for pandoc_install()
default behavior.
Usage
pandoc_install(version = "latest", force = FALSE)
pandoc_update()
pandoc_install_nightly(n_last = 1L)
Arguments
version |
This can be either:
|
force |
To set to |
n_last |
Set to |
Details
Pandoc versions are installed in user data directories with one folder per
version. See pandoc_locate()
.
Only one nightly version is available at a time as there should be no need to switch between them. The latest nightly will be installed over the current one if any. Installing nightly version is useful for example to test a bug against the very last available built version.
Value
Invisibly, the path where the binary is installed otherwise. NULL
if already
installed.
Examples
# Install the latest pandoc version
pandoc_install() # or pandoc_update()
pandoc_uninstall("latest")
# Install a specific pandoc version
pandoc_install("2.11.4")
pandoc_uninstall("2.11.4")
# Install last nightly build of pandoc
pandoc_install_nightly()
pandoc_uninstall("nightly")