getCranDescription: Obtains DESCRIPTION metadata from CRAN for each package.

Description Usage Arguments Examples

View source: R/getCranDescription.R

Description

This is a wrapper around tools::CRAN_package_db and may be deprecated in future versions of the package.

Usage

1
2
3
4
5
6
getCranDescription(
  pkg,
  repos = getOption("repos"),
  type = "source",
  pkgs = pkgDep(pkg, repos = repos, type = type)
)

Arguments

pkg

Character vector of packages.

repos

URL(s) of the 'contrib' sections of the repositories, e.g. "http://cran.us.r-project.org". Passed to available.packages()

type

Possible values are (currently) "source", "mac.binary" and "win.binary": the binary types can be listed and downloaded but not installed on other platforms. Passed to download.packages().

pkgs

Character vector of packages to download

Examples

1
2
3
4
5
6
## Not run: 
getCranDescription(c("igraph", "ggplot2", "XML"),
  repos = c(CRAN = getOption("minicran.mran"))
)

## End(Not run)

miniCRAN documentation built on Sept. 16, 2020, 1:07 a.m.