pandoc_available {pandoc} | R Documentation |
Check if active Pandoc version meet a requirement
Description
This function allows to test if an active Pandoc version meets a min, max or
in between requirement. See pandoc_activate()
about active
version.
Usage
pandoc_available(min = NULL, max = NULL)
Arguments
min |
Minimum version expected. |
max |
Maximum version expected |
Details
If min
and max
are provided, this will check the active version is
in-between two versions. If non is provided (keeping the default NULL
for
both), it will check for an active version and return FALSE
if none is
active.
Value
logical. TRUE
if requirement is met, FALSE
otherwise.
Examples
# Is there an active version available ?
pandoc_available()
# check for a minimum requirement
pandoc_available(min = "2.11")
# check for a maximum version
pandoc_available(max = "2.18")
# only returns TRUE if Pandoc version is between two bounds
pandoc_available(min = "2.11", max = "2.12")
[Package pandoc version 0.2.0 Index]