Skip to contents

Get package version.

Usage

get_version(remote_ref)

# S3 method for class 'remote_ref'
get_version(remote_ref)

Arguments

remote_ref

(remote_ref) object created with pkgdepends::parse_pkg_ref()

Value

Package version created with package_version.

Examples

if (FALSE) { # Sys.getenv("R_USER_CACHE_DIR", "") != ""
get_version(pkgdepends::parse_pkg_ref("dplyr"))
get_version(pkgdepends::parse_pkg_ref("tidyverse/dplyr"))
get_version(pkgdepends::parse_pkg_ref("tidyverse/dplyr@v1.1.0"))
get_version(pkgdepends::parse_pkg_ref("bioc::MultiAssayExperiment"))
}