View source: R/create_universe_pkgs_json.R
create_universe_pkgs_json | R Documentation |
Prepares a packages.json file required for R-universe for creating our personal CRAN-like repository on R-universe
create_universe_pkgs_json(
group = "KWB-R",
ignore_pkgs = NULL,
non_r_packages = kwb.pkgstatus::get_non_r_packages(),
github_token = Sys.getenv("GITHUB_PAT")
)
group |
default: "KWB-R" |
ignore_pkgs |
vector of pkg names that should be ignored to prevent problems with codemeta generation (e.g. "kwb.read" fails due to missing metadata on the license!) |
non_r_packages |
vector with repos that are not R packages (default: kwb.pkgstatus::get_non_r_packages()) |
github_token |
optionally a Github token in order to access private repositories (default: Sys.getenv("GITHUB_PAT")) |
JSON structure as required for packages.json
https://ropensci.org/blog/2021/06/22/setup-runiverse/#the-packagesjson-registry-file
create_universe_pkgs_json()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.