Learn R Programming

RcppAPT (version 0.0.9)

showSrc: Display information for given packages

Description

The APT Package Management system uses a data-rich caching structure. This accessor function displays the information for a set of packages matching the given regular expression. The output corresponds to apt-cache showsrc pkgname.

Usage

showSrc(regexp = ".")

Arguments

regexp

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

Value

A boolean is returned indicating whether or not the given regular expression could be matched to source packages -- but the function is invoked ' for the side effect of displaying information.

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.

Examples

Run this code
# NOT RUN {
showSrc("^r-(base|doc)-")
showSrc("r-cran-rcpp")  # also finds RcppEigen and RcppArmadillo
showSrc("r-cran-rcpp$") # just Rcpp
# }

Run the code above in your browser using DataLab