Skip to contents

Augments a package's configuration metadata (<pkg>::pkg_config) with the columns r_opts and env_var holding the respective R option and environment variable names.

Usage

augment_pkg_config(pkg)

Arguments

pkg

Package name. A character scalar.

Value

A tibble with at minimum the columns key, default_value, r_opt and env_var.

See also

Other package configuration functions: has_pkg_config_val(), pkg_config_val(), pkg_config_val_default(), print_pkg_config()

Examples

try(
  pal::augment_pkg_config(pkg = "pkgpurl")
)
#> # A tibble: 3 × 6
#>   key                  default_value default_value_dynamic description                                                                             r_opt env_var
#>   <chr>                <list>        <chr>                 <chr>                                                                                   <chr> <chr>  
#> 1 add_copyright_notice <NULL>        NA                    Whether or not to add a **copyright notice** at the beginning of the generated `.R` fi… pkgp… R_PKGP…
#> 2 add_license_notice   <NULL>        NA                    Whether or not to add a **license notice** at the beginning of the generated `.R` file… pkgp… R_PKGP…
#> 3 gen_pkgdown_ref      <NULL>        NA                    Whether or not to overwrite [pkgdown](https://pkgdown.r-lib.org/)'s [reference index](… pkgp… R_PKGP…