Skip to contents

This is calling pandoc --version to retrieve the version of Pandoc used. A special treatment is done for nightly version as Pandoc project does not use a development version scheme between released versions. This function will add a .9999 suffix to the version reported by Pandoc.

Usage

pandoc_version(version = "default")

Arguments

version

Version to use. Default will be the "default" version. Other possible value are

  • A 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"

Value

The version number for pandoc binary as a base::numeric_version() object.

Examples

pandoc::pandoc_version()
#> [1] ‘2.18’
pandoc::pandoc_version(version = "system")
#> [1] ‘2.19.2’