Learn R Programming

fritools (version 3.3.0)

set_run_r_tests: Set the System Variable RUN_R_TESTS

Description

A convenience wrapper to Sys.getenv for setting RUN_R_TESTS.

Usage

set_run_r_tests(x, force = FALSE)

Arguments

x

A logical, typically some function output.

force

Overwrite the variable if already set?

Value

The value RUN_R_TESTS is set to, NULL if nothing is done.

See Also

Other test helpers: get_boolean_envvar(), 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()

Examples

Run this code
# NOT RUN {
set_run_r_tests(is_running_on_fvafrcu_machines())
get_run_r_tests()
set_run_r_tests(TRUE, force = TRUE)
get_run_r_tests()
# }

Run the code above in your browser using DataLab