NOTES

Define data

pkg_config

pkg_config <-
  tibble::tibble(key = character(),
                 default_value = list(),
                 default_value_dynamic = character(),
                 require = logical(),
                 description = character()) |>
  tibble::add_row(key = "netlify_token",
                  require = TRUE,
                  description = paste0("[Netlify personal access token](https://docs.netlify.com/api/get-started/#authentication) used for authentication ",
                                       "in the [`netlify_*()` functions](https://yay.rpkg.dev/reference/index.html#netlify).")) |>
  tibble::add_row(key = "porkbun_api_key",
                  require = TRUE,
                  description = paste0("[Porkbun API key](https://porkbun.com/api/json/v3/documentation#Authentication) used for authentication in the ",
                                       "[`porkbun_*()` functions](https://yay.rpkg.dev/reference/index.html#porkbun).")) |>
  tibble::add_row(key = "porkbun_secret_api_key",
                  require = TRUE,
                  description = paste0("[Porkbun secret API key](https://porkbun.com/api/json/v3/documentation#Authentication) used for authentication in ",
                                       "the [`porkbun_*()` functions](https://yay.rpkg.dev/reference/index.html#porkbun)."))

Write data

Save all the small data objects as a single internal file R/sysdata.rda. Note that when documenting them, they must be explicitly @exported to be available to package users.

usethis::use_data(pkg_config,
                  internal = TRUE,
                  overwrite = TRUE,
                  compress = "xz",
                  version = 3L)


salim-b/yay documentation built on Jan. 3, 2025, 6:16 p.m.