Learn R Programming

pacs (version 0.6.0)

pac_description: package DESCRIPTION file

Description

CRAN package DESCRIPTION file taken locally or remotely from GITHUB CRAN mirror or CRAN website. By default works for the newest package version.

Usage

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

Value

list with names proper for DESCRIPTION file fields.

Arguments

pac

character a package name.

version

character version of a package. Default: NULL

at

Date from which to take the version. Default: NULL

local

logical if to use local repository (or newest remote packages). Default: FALSE

lib.loc

character vector of search paths with local packages. Default: .libPaths()

repos

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

Examples

Run this code
if (FALSE) {
pacs::pac_description("dplyr", version = "0.8.0")
pacs::pac_description("dplyr", at = as.Date("2019-02-01"))
}

Run the code above in your browser using DataLab