| get_boolean_envvar | R Documentation |
A convenience wrapper to Sys.getenv.
get_boolean_envvar(x, stop_on_failure = FALSE)
x |
The name of the Environment Variable. |
stop_on_failure |
Throw an error instead of returning
|
As Sys.getenv seems to always return a character vector, the
class of the value you set it to does not matter.
The value the environment variable is set to, converted to boolean.
FALSE if the environment variable is not set or cannot be
converted to boolean. But see Arguments: stop_on_failure.
Other test helpers:
develop_test(),
get_run_r_tests(),
is_cran(),
is_r_cmd_check(),
is_running_on_fvafrcu_machines(),
is_running_on_gitlab_com(),
run_r_tests_for_known_hosts(),
set_run_r_tests()
Other operating system functions:
clipboard_path(),
file_copy(),
file_save(),
get_run_r_tests(),
is_installed(),
is_r_package_installed(),
is_success(),
is_windows(),
view(),
vim(),
wipe_tempdir(),
with_dir()
message("See\n example(\"get_run_r_tests\", package = \"fritools\")")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.