Learn R Programming

rmarkdown (version 0.1.2)

pandoc_available: Check whether pandoc is available

Description

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

Usage

pandoc_available(version = NULL)

Arguments

version

Required version of pandoc

Value

Logical indicating whether a version of pandoc is available

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.

Examples

Run this code
# NOT RUN {
library(rmarkdown)

if (pandoc_available())

  cat("pandoc is available!\n")

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

Run the code above in your browser using DataLab