R/envvar.R
using_envvar.Rd
Determine whether an environment variable is being used
using_envvar(x, value = NULL)
Environment variable
Optional value to compare against
A logical value
using_envvar("NOT_CRAN") #> [1] TRUE using_envvar("CI", "true") #> [1] TRUE