Skip to contents

version() reports the version of Bioconductor appropropriate for this version of R, or the version of Bioconductor requested by the user.

Usage

version()

# S3 method for class 'version_sentinel'
print(x, ...)

Arguments

x

An unknown_version instance used to represent the situation when the version of Bioconductor in use cannot be determined.

...

Additional arguments, ignored.

Value

A two-digit version, e.g., 3.8, of class package_version describing the version of Bioconductor in use.

Details

version() (and all functions requiring version information) fails when version cannot be validated e.g., because internet access is not available.

The environment variable R_BIOC_VERSION can be used to specify a version that is not consistent with Bioconductor release versioning. Use of this variable is strongly discouraged.

Examples

BiocManager::version()
#> [1] ‘3.19’