Tests whether or not a certain package configuration value is set. See pkg_config_val()
for the underlying concept.
Usage
has_pkg_config_val(
key,
pkg = utils::packageName(env = parent.frame()),
env = parent.frame()
)
Details
Note that has_pkg_config_val()
throws an error if the package configuration key doesn't exist.
See also
Other package configuration functions:
augment_pkg_config()
,
pkg_config_val()
,
pkg_config_val_default()
,
print_pkg_config()
Examples
try(
pal::has_pkg_config_val(key = "gen_pkgdown_ref",
pkg = "pkgpurl")
)
#> [1] TRUE