pkg_config_val_default | R Documentation |
Retrieves a package configuration's default value from the package's configuration metadata (column default_value
or default_value_dynamic
of
<pkg>::pkg_config
). If no default value is specified (NULL
), nothing is returned (NULL
).
pkg_config_val_default(
key,
pkg = utils::packageName(env = parent.frame()),
env = parent.frame()
)
key |
Configuration key name. A character scalar. |
pkg |
Package name. A character scalar. Defaults to the name of the calling package. |
env |
Environment to evaluate |
pkgsnip::return_lbl("r_obj")
Other package configuration functions:
augment_pkg_config()
,
has_pkg_config_val()
,
pkg_config_val()
,
print_pkg_config()
try(
pal::pkg_config_val_default(key = "gen_pkgdown_ref",
pkg = "pkgpurl")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.