R/RcppExports.R

Defines functions getDepends reverseDepends hasPackages getPackages dumpPackages showSrc buildDepends

Documented in buildDepends dumpPackages getDepends getPackages hasPackages reverseDepends showSrc

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' The APT Package Management system uses a data-rich caching
#' structure. This accessor function returns the Build-Depends for
#' a set of packages matching the given regular expression. 
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Return Build-Depends for given packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".")
#' @return A character vector containing package names is returned.
#' @author Dirk Eddelbuettel
#' @examples
#' buildDepends("r-cran-rcpp$")
buildDepends <- function(regexp = ".") {
    .Call('_RcppAPT_buildDepends', PACKAGE = 'RcppAPT', regexp)
}

#' 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 \code{apt-cache showsrc pkgname}.
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Display information for given packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".")
#' @return 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.
#' @author Dirk Eddelbuettel
#' @examples
#' showSrc("^r-(base|doc)-")
#' showSrc("r-cran-rcpp")  # also finds RcppEigen and RcppArmadillo
#' showSrc("r-cran-rcpp$") # just Rcpp
showSrc <- function(regexp = ".") {
    .Call('_RcppAPT_showSrc', PACKAGE = 'RcppAPT', regexp)
}

#' 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. It
#' corresponds somewhat to \code{apt-cache showpkg pkgname} but
#' displays more information.
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Display information for given packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".")
#' @return 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.
#' @author Dirk Eddelbuettel
#' @examples
#' dumpPackages("^r-(base|doc)-")
dumpPackages <- function(regexp = ".") {
    .Call('_RcppAPT_dumpPackages', PACKAGE = 'RcppAPT', regexp)
}

#' 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.
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Retrieve Names of All Installable Packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".").
#' @return A data frame with columns containing the
#' package name and version (or NA if unavailable).
#' @author Dirk Eddelbuettel
#' @examples
#' getPackages("^r-(base|doc)-")
getPackages <- function(regexp = ".") {
    .Call('_RcppAPT_getPackages', PACKAGE = 'RcppAPT', regexp)
}

#' The APT Package Management system uses a data-rich caching
#' structure. This accessor function tests whether a given package
#' exists.
#' @title Test for Existence of Given Package
#' @param pkg A character vector with name of the package
#' @return A boolean result vector is returned indicating if the 
#' package at the given position is available.
#' @author Dirk Eddelbuettel
#' @examples
#' hasPackages(c("r-base-core", "somethingThatDoesNotExist"))
hasPackages <- function(pkg) {
    .Call('_RcppAPT_hasPackages', PACKAGE = 'RcppAPT', pkg)
}

#' The APT Package Management system uses a data-rich caching
#' structure. This accessor function returns the Reverse-Depends for
#' a set of packages matching the given regular expression.
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Return Reverse-Depends for given packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".")
#' @return A data frame with two column listing packages and, where
#' available, minimal version.
#' @author Dirk Eddelbuettel
#' @examples
#' reverseDepends("r-cran-rcpp$")
reverseDepends <- function(regexp = ".") {
    .Call('_RcppAPT_reverseDepends', PACKAGE = 'RcppAPT', regexp)
}

#' The APT Package Management system uses a data-rich caching
#' structure. This accessor function returns the Depends for
#' a set of packages matching the given regular expression.
#'
#' Note that the package lookup uses regular expressions. If only a
#' single package is desired, append a single \code{$} to terminate
#' the expression.  \emph{Ie} \code{r-cran-rcpp$} will \emph{not}
#' return results for \code{r-cran-rcpparmadillo} and
#' \code{r-cran-rcppeigen}.
#'
#' @title Return Depends for given packages
#' @param regexp A regular expression for the package name(s) with a
#' default of all (".")
#' @return A data frame with four columns listing (source) package, dependend
#' packages, comparison operator, and, where available, minimal version. 
#' @author Dirk Eddelbuettel
#' @examples
#' reverseDepends("r-cran-rcpp$")
getDepends <- function(regexp = ".") {
    .Call('_RcppAPT_getDepends', PACKAGE = 'RcppAPT', regexp)
}

Try the RcppAPT package in your browser

Any scripts or data that you put into this service are public.

RcppAPT documentation built on July 18, 2017, 5:01 p.m.