R/pkg_version.R

Defines functions pkg_version

Documented in pkg_version

#' Retrieve Package version
#'
#' Internal helper function.
#' @param pkgs_col Package name.
#'
#' @return A character vector with the package version.
#'
pkg_version <- function(pkgs_col) {
  pkgVers <- suppressWarnings(purrr::map(pkgs_col, utils::packageDescription, fields = "Version"))
  purrr::flatten_chr(purrr::map(pkgVers, paste0, collapse = "/"))
}

Try the annotater package in your browser

Any scripts or data that you put into this service are public.

annotater documentation built on May 29, 2024, 9:58 a.m.