cran_packages: Metadata about multiple CRAN packages

Description Usage Arguments Value Examples

View source: R/crandb-public-api.R

Description

Metadata about multiple CRAN packages

Usage

1

Arguments

names

Package names. May also contain versions, separated by a @ character.

Value

A data frame of package metadata, one package per row.

Examples

1
2
3
4
5
6
7
8
# Get metadata about one package
cran_packages("rhub")
# Get metadata about two packages
cran_packages(c("rhub", "testthat"))
# Get metadata about two packages at given versions
cran_packages(c("rhub@1.1.1", "testthat@2.2.1", "testthat@2.2.0"))
# If a version does not exist nothing is returned
cran_packages("rhub@notaversion")

pkgsearch documentation built on Oct. 23, 2020, 7:12 p.m.