Check the availability and version of the yq tool.
Usage
check_yq(
yq_binary = getOption("scdrake_yq_binary"),
repair_executable = TRUE,
verbose = TRUE
)Details
When R is run from the command line, the PATH environment variable is inherited from the current shell
session. But when R is run within the RStudio Server, user's PATH is not used. To modify the environment in which
R is run within your project, place .Renviron file to the root of your project, e.g.:
Environment variables defined in .Renviron will be available in the R session run within the RStudio project.
Alternatively in R after scdrake package is loaded, you can set a path to the yq tool's binary with
options(scdrake_yq_binary = "/path/to/yq/binary").