pac_description: package DESCRIPTION file

View source: R/description.R

pac_descriptionR Documentation

package DESCRIPTION file

Description

CRAN package DESCRIPTION file taken locally or remotely from GITHUB CRAN mirror or CRAN website.

Usage

pac_description(
  pac,
  version = NULL,
  at = NULL,
  local = FALSE,
  lib.loc = .libPaths(),
  repos = "https://cran.rstudio.com/"
)

Arguments

pac

character a package name.

version

character package version, by default the is_installed version. Default: NULL

at

Date. Default: NULL

local

logical if to use local library. Default: FALSE

lib.loc

character vector, used optionally when local is equal TRUE. Default: .libPaths()

repos

character vector URLs of the repositories to use. Used only for the validation. Default https://cran.rstudio.com/

Value

list with names proper for DESCRIPTION file fields.

Note

Results are cached for 30 minutes with memoise package.

Examples

## Not run: 
  pacs::pac_description("dplyr", version = "0.8.0")
  pacs::pac_description("dplyr", at = as.Date("2019-02-01"))

## End(Not run)

pacs documentation built on May 11, 2022, 1:09 a.m.