Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_active

Test active configuration


Description

Check whether a configuration is currently active

Usage

is_active(config)

Arguments

config

Configuration name

Details

The name of the currently active configuration is read from the R_CONFIG_ACTIVE environment variable. If the variable is not defined then the "default" configuration is used.

To test for whether a configuration is active you should use the is_active() function rather than inspecting the environment variable directly (this is to so that tests remain valid if other means of specifying configurations are introduced in the future).

Value

Logical indicating whether the specified configuration is active

See Also


config

Manage Environment Specific Configuration Values

v0.3.1
GPL-3
Authors
JJ Allaire [aut], Andrie de Vries [cre], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.