Tells if some environment variable(s) are defined.

hasEnvar(x)

Arguments

x

environment variable name, as a character vector.

Examples

hasEnvar('_R_CHECK_TIMINGS_')
#> [1] TRUE
hasEnvar('ABCD')
#> [1] TRUE