pandoc_available: Check pandoc availabilty and version

Description Usage Arguments Details Value Examples

View source: R/pandoc.R

Description

Determine whether pandoc is currently available on the system (optionally checking for a specific version or greater). Determine the specific version of pandoc available.

Usage

1
2
3

Arguments

version

Required version of pandoc

Details

The system path as well as the version of pandoc shipped with RStudio (if running under RStudio) are scanned for pandoc and the highest version available is used.

Value

pandoc_available returns a logical indicating whether the required version of pandoc is available. pandoc_version returns a numeric_version with the version of pandoc found.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(rmarkdown)

if (pandoc_available())
  cat("pandoc", as.character(pandoc_version()), "is available!\n")

if (pandoc_available("1.12.3"))
  cat("requried version of pandoc is available!\n")

## End(Not run)

muuankarski/karskidocs documentation built on May 23, 2019, 10:52 a.m.