create_universe_pkgs_json: Create Universe Packages JSON

View source: R/create_universe_pkgs_json.R

create_universe_pkgs_jsonR Documentation

Create Universe Packages JSON

Description

Prepares a packages.json file required for R-universe for creating our personal CRAN-like repository on R-universe

Usage

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")
)

Arguments

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"))

Value

JSON structure as required for packages.json

References

https://ropensci.org/blog/2021/06/22/setup-runiverse/#the-packagesjson-registry-file

Examples

create_universe_pkgs_json()



KWB-R/pkgmeta documentation built on March 27, 2024, 4:28 p.m.