Retrieves a package configuration key's default value from the package's funky configuration data (column default_value or default_value_dynamic of
<pkg>:::funky_config). If no default value is specified (NULL), nothing is returned (NULL).
Usage
config_val_default(
key,
pkg = utils::packageName(env = parent.frame()),
env = parent.frame()
)See also
Other package configuration value functions:
config_val(),
has_config_val()
Examples
try(
funky::config_val_default(key = "gen_pkgdown_ref",
pkg = "pkgpurl")
)
#> [1] TRUE