Learn R Programming

pkgcache (version 2.0.1)

bioc_version: Query Bioconductor version information

Description

Various helper functions to deal with Bioconductor repositories. See https://www.bioconductor.org/ for more information on Bioconductor.

Usage

bioc_version(r_version = getRversion(), forget = FALSE)

bioc_version_map(forget = FALSE)

bioc_devel_version(forget = FALSE)

bioc_release_version(forget = FALSE)

bioc_repos(bioc_version = "auto", forget = FALSE)

Arguments

r_version

The R version number to match.

forget

Use TRUE to avoid caching the Bioconductor mapping.

bioc_version

Bioconductor version string or package_version object, or the string "auto" to use the one matching the current R version.

Value

bioc_version() returns a package_version object.

bioc_version_map() returns a data frame with columns:

  • bioc_version: package_version object, Bioconductor versions.

  • r_version: package_version object, the matching R versions.

  • bioc_status: factor, with levels: out-of-date, release, devel, future.

bioc_devel_version() returns a package_version object.

bioc_release_version() returns a package_version object.

bioc_repos() returns a named character vector.

Details

bioc_version() queries the matching Bioconductor version for an R version, defaulting to the current R version

bioc_version_map() returns the current mapping between R versions and Bioconductor versions.

bioc_devel_version() returns the version number of the current Bioconductor devel version.

bioc_release_version() returns the version number of the current Bioconductor release.

bioc_repos() returns the Bioconductor repository URLs.

See the BioC_mirror option and the R_BIOC_MIRROR and R_BIOC_VERSION environment variables in the pkgcache manual page. They can be used to customize the desired Bioconductor version.

Examples

Run this code
# NOT RUN {
bioc_version()
bioc_version("4.0")
bioc_version("4.1")
# }
# NOT RUN {
bioc_version_map()
# }
# NOT RUN {
bioc_devel_version()
# }
# NOT RUN {
bioc_release_version()
# }
# NOT RUN {
bioc_repos()
# }

Run the code above in your browser using DataLab