check_yq | R Documentation |
yq
tool.Check the availability and version of the yq
tool.
check_yq(
yq_binary = getOption("scdrake_yq_binary"),
repair_executable = TRUE,
verbose = TRUE
)
yq_binary |
A character scalar: path to the |
repair_executable |
A logical scalar: if |
verbose |
A logical scalar: if |
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.:
echo 'PATH=${PATH}:"/path/to/dir/with/yq"' >> .Renviron
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")
.
TRUE
if checks pass.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.