Learn R Programming

sits (version 1.4.1)

sits_run_examples: Informs if sits examples should run

Description

This function informs if sits examples should run. To run the examples, set "SITS_RUN_EXAMPLES" to "YES" using Sys.setenv("SITS_RUN_EXAMPLES" = "YES") To come back to the default behaviour, please set Sys.setenv("SITS_RUN_EXAMPLES" = "NO")

Usage

sits_run_examples()

Arguments

Value

A logical value

Examples

Run this code
if (sits_run_examples()){
    message("use devtools::run_examples() to run the examples")
} else{
    message(paste0("Set the envvar SITS_RUN_EXAMPLES to YES",
    "to run the examples"))
}


Run the code above in your browser using DataLab