NOTES

Define data

funky_config

funky_config <-
  funky::ptype_config |>
  tibble::add_row(key = "some_required_key",
                  default_value = list("some value")
                  require = TRUE,
                  description = "what is some required key for?") |>
  tibble::add_row(key = "some_optional_key",
                  require = FALSE,
                  description = "what is some optional key for?")

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(funky_config,
                  internal = TRUE,
                  overwrite = TRUE,
                  compress = "xz",
                  version = 3L)


salim-b/pkgpurl documentation built on June 2, 2025, 8:26 a.m.