CRAN package DESCRIPTION file taken locally or remotely from GITHUB CRAN mirror or CRAN website. By default works for the newest package version.
pac_description(
pac,
version = NULL,
at = NULL,
local = FALSE,
lib.loc = .libPaths(),
repos = "https://cran.rstudio.com/"
)
character
a package name.
character
version of a package. Default: NULL
Date
from which to take the version. Default: NULL
logical
if to use local repository (or newest remote packages). Default: FALSE
character
vector of search paths with local packages. Default: .libPaths()
character
vector repositories URLs to use. Used only for the validation. Default https://cran.rstudio.com/
list
with names proper for DESCRIPTION file fields.
Results are cached for 30 minutes with memoise
package.
if (FALSE) { # \dontrun{
pacs::pac_description("dplyr", version = "0.8.0")
pacs::pac_description("dplyr", at = as.Date("2019-02-01"))
} # }