has_pkg_config_val | R Documentation |
Tests whether or not a certain package configuration value is set. See pkg_config_val()
for the underlying concept.
has_pkg_config_val(
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 |
Note that has_pkg_config_val()
throws an error if the package configuration key doesn't exist.
A logical scalar.
Other package configuration functions:
augment_pkg_config()
,
pkg_config_val()
,
pkg_config_val_default()
,
print_pkg_config()
try(
pal::has_pkg_config_val(key = "gen_pkgdown_ref",
pkg = "pkgpurl")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.