View source: R/pandoc-activate.R
pandoc_available | R Documentation |
This function allows to test if an active Pandoc version meets a min, max or
in between requirement. See pandoc_activate()
about active
version.
pandoc_available(min = NULL, max = NULL)
min |
Minimum version expected. |
max |
Maximum version expected |
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.
logical. TRUE
if requirement is met, FALSE
otherwise.
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.