using_config {ami} | R Documentation |
Detect whether a configuration is currently active
Description
Environment-specific configuration values can be used to alter code's
behavior in different environments. The
config package uses the
R_CONFIG_ACTIVE
environment variable to specify the active environment.
If R_CONFIG_ACTIVE
is not set, the "default"
configuration is used.
Usage
using_config(config)
Arguments
config |
Configuration name |
Value
A logical value
Examples
# See whether the default configuration is being used
using_config("default")
# See whether the "production" configuration is being used
using_config("production")
[Package ami version 0.1.1 Index]