Learn R Programming

sits (version 1.1.0)

sits_run_tests: Informs if sits tests should run

Description

This function informs if sits test should run. Useful to avoid running slow tests in CRAN environment. Behaviour controlled by environmental variable R_CONFIG_ACTIVE_TESTS

Usage

sits_run_tests()

Arguments

Value

TRUE/FALSE

Examples

Run this code
if (sits_run_examples()) {
# recover config state
config_tests <- sits_run_tests()
# set active tests to FALSE
sits_config(run_tests = FALSE)
isFALSE(sits_run_tests())
# recover config state
# set active tests
sits_config(run_tests = TRUE)
# result should be true
isTRUE(sits_run_tests())
# restore previous state
sits_config(run_tests = config_tests)
}

Run the code above in your browser using DataLab