getPackages: Retrieve Names of All Installable Packages

View source: R/RcppExports.R

getPackagesR Documentation

Retrieve Names of All Installable Packages

Description

The APT Package Management system uses a data-rich caching structure. This accessor function returns the names of installable packages for a given regular expression.

Usage

getPackages(regexp = ".")

Arguments

regexp

A regular expression for the package name(s) with a default of all (".").

Details

Note that the package lookup uses regular expressions. If only a single package is desired, append a single $ to terminate the expression. Ie r-cran-rcpp$ will not return results for r-cran-rcpparmadillo and r-cran-rcppeigen.

Value

A data frame with columns containing the package name and version (or NA if unavailable).

Author(s)

Dirk Eddelbuettel

Examples

getPackages("^r-(base|doc)-")

RcppAPT documentation built on May 25, 2022, 5:05 p.m.