wood_versions: Collect all package versions from multiple repositories

View source: R/wood-versions.R

wood_versionsR Documentation

Collect all package versions from multiple repositories

Description

This function queries the selected repositories for version codes of the selected packages and collects the unique occurences.

Usage

wood_versions(packages, repos = "cran")

Arguments

packages

character()
Names of the packages to query for.

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

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

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

  • "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 list named after queried packages, each element being a character vector of version codes.

See Also

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

Functions that query package versions: wood_bioc_version(), wood_core_version(), wood_cran_latest(), wood_cran_versions(), wood_github_latest(), wood_github_versions(), wood_local_versions(), wood_runiverse_version(), wood_url_version()

Examples


wood_versions("woodendesc", c("local#all", "runiverse@turtletopia"))
# Multiple packages are also possible:
wood_versions(
  c("ggplot2", "Biostrings", "woodendesc"),
  repos = c("runiverse@turtletopia", "cran", "bioc@1.5")
)
# By default, only CRAN is queried:
wood_versions("versionsort")



woodendesc documentation built on April 18, 2023, 5:09 p.m.