Get package version.
Arguments
- remote_ref
(
remote_ref
) object created withpkgdepends::parse_pkg_ref()
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"))
}