Learn R Programming

sits (version 1.4.1)

sits_run_tests: Informs if sits tests should run

Description

To run the tests, set "SITS_RUN_TESTS" environment to "YES" using Sys.setenv("SITS_RUN_TESTS" = "YES") To come back to the default behaviour, please set Sys.setenv("SITS_RUN_TESTS" = "NO")

Usage

sits_run_tests()

Arguments

Value

TRUE/FALSE

Examples

Run this code
if (sits_run_tests()){
    message("Tests will be run")
} else{
    message(paste("Set the environmental variable SITS_RUN_TESTS to YES",
    "to run the tests or use devtools::run_tests()"))
}

Run the code above in your browser using DataLab