Skip to contents

Skip a test if not running within the context of 'R CMD CHECK' or not configured to run, as determined by the value of the supplied system environment variable.

Usage

skip_if_r_cmd_check_or_not_configured(env_var_id = NULL)

Arguments

env_var_id

The system environment variable that specified whether or not to run the corresponding test.

Value

NULL (invisibly)

Examples

if (FALSE) { # \dontrun{
skip_if_r_cmd_check_or_not_configured()
Sys.setenv(DIMEX_RUN_HLDT_1D = "false")
skip_if_r_cmd_check_or_not_configured("DIMEX_RUN_HLDT_1D")
} # }