wood_packages: Collect available packages from multiple repositories

View source: R/wood-packages.R

wood_packagesR Documentation

Collect available packages from multiple repositories

Description

This function queries the selected repositories for the available packages and collects the unique occurrences.

Usage

wood_packages(repos = "cran")

Arguments

repos

character()
A vector of repositories to query. The following values are available:

  • "cran", meaning CRAN;

  • "bioc@release", meaning Bioconductor, where release should be replaced with a valid Bioconductor release code or one of "release", "devel";

  • "runiverse@universe", meaning R-universe, where universe should be replaced with a valid universe name (e.g. turtletopia);

  • "github/user", meaning GitHub, where user should be replaced with a valid user or organization name (e.g. turtletopia);

  • "gitlab/user", meaning GitLab, where user should be replaced with a valid user or group name (e.g. r-packages);

  • "local#index", meaning a local library, where index should be replaced with an integer index of a library in base::.libPaths() or an all keyword;

  • "core", meaning base R packages;

  • a URL if none of the above is matched.

Value

A character vector of available packages.

See Also

Functions for all repositories: wood_dependencies(), wood_versions()

Functions that query available packages: wood_bioc_packages(), wood_core_packages(), wood_cran_packages(), wood_github_packages(), wood_gitlab_packages(), wood_local_packages(), wood_runiverse_packages(), wood_url_packages()

Examples


print(wood_packages(c("local#all", "bioc@1.7", "cran", "core")), max = 15)
wood_packages(c("https://colinfay.me", "runiverse@turtletopia"))
# By default, only CRAN is queried:
print(wood_packages(), max = 15)


ErdaradunGaztea/woodendesc documentation built on Feb. 1, 2025, 2:26 a.m.