set_run_r_tests {fritools}R Documentation

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: develop_test(), 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

set_run_r_tests(is_running_on_fvafrcu_machines())
get_run_r_tests()
set_run_r_tests(TRUE, force = TRUE)
get_run_r_tests()

[Package fritools version 4.3.0 Index]