R/pkg_info.R

Defines functions pkg_info

Documented in pkg_info

#' @title Get the package version info
#' @description returns package info.
#' @param pkg the package name i.e "prospectr"
#' @keywords internal
pkg_info <- function(pkg = "prospectr") {
  fld <- c("Version", "Config/VersionName", "URL")
  pinfo <- read.dcf(system.file("DESCRIPTION", package = pkg), fields = fld)
  pinfo
}

Try the prospectr package in your browser

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

prospectr documentation built on June 22, 2024, 11:08 a.m.