
Check if quarto is available and version meet some requirements
Source:R/quarto.R
quarto_available.Rd
This function allows to test if Quarto is available and meets version requirement, a min, max or in between requirement.
Details
If min
and max
are provided, this will check if Quarto version is
in-between two versions. If non is provided (keeping the default NULL
for
both), it will just check for Quarto availability version and return FALSE
if not found.
Examples
# Is there an active version available ?
quarto_available()
#> [1] TRUE
# check for a minimum requirement
quarto_available(min = "1.5")
#> [1] TRUE
# check for a maximum version
quarto_available(max = "1.6")
#> [1] FALSE
# only returns TRUE if Pandoc version is between two bounds
quarto_available(min = "1.4", max = "1.6")
#> [1] FALSE