Title: | 'Rcpp' Interface to the APT Package Manager |
---|---|
Description: | The 'APT Package Management System' provides Debian and Debian-derived Linux systems with a powerful system to resolve package dependencies. This package offers access directly from R. This can only work on a system with a suitable 'libapt-pkg-dev' installation so functionality is curtailed if such a library is not found. |
Authors: | Dirk Eddelbuettel [aut, cre] |
Maintainer: | Dirk Eddelbuettel <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.0.10 |
Built: | 2024-11-29 20:33:13 UTC |
Source: | https://github.com/eddelbuettel/rcppapt |
Debian-based systems such as Debian, Ubuntu, or their derivatives use
the APT Package Manager, commonly via programs such as apt-get
,
apt-cache
or other frontends written against the APT libraries.
This package offers a simple interface from R, mostly so that the package management system can be queried.
The APT library API is described in the package libapt-pkg-doc
.
Dirk Eddelbuettel
Maintainer: Dirk Eddelbuettel <[email protected]>
See the libapt-pkg-doc
package on a Debian-based system.
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.
buildDepends(regexp = ".")
buildDepends(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all (".") |
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
.
A character vector containing package names is returned.
Dirk Eddelbuettel
buildDepends("r-cran-rcpp$")
buildDepends("r-cran-rcpp$")
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 apt-cache showpkg pkgname
but
displays more information.
dumpPackages(regexp = ".")
dumpPackages(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all (".") |
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
.
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.
Dirk Eddelbuettel
dumpPackages("^r-(base|doc)-")
dumpPackages("^r-(base|doc)-")
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.
getDepends(regexp = ".")
getDepends(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all (".") |
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
.
A data frame with four columns listing (source) package, dependend packages, comparison operator, and, where available, minimal version.
Dirk Eddelbuettel
reverseDepends("r-cran-rcpp$")
reverseDepends("r-cran-rcpp$")
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.
getPackages(regexp = ".")
getPackages(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all ("."). |
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
.
A data frame with columns containing the package name and version (or NA if unavailable).
Dirk Eddelbuettel
getPackages("^r-(base|doc)-")
getPackages("^r-(base|doc)-")
The APT Package Management system uses a data-rich caching structure. This accessor function tests whether a given package exists.
hasPackages(pkg)
hasPackages(pkg)
pkg |
A character vector with name of the package |
A boolean result vector is returned indicating if the package at the given position is available.
Dirk Eddelbuettel
hasPackages(c("r-base-core", "somethingThatDoesNotExist"))
hasPackages(c("r-base-core", "somethingThatDoesNotExist"))
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.
reverseDepends(regexp = ".")
reverseDepends(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all (".") |
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
.
A data frame with two column listing packages and, where available, minimal version.
Dirk Eddelbuettel
reverseDepends("r-cran-rcpp$")
reverseDepends("r-cran-rcpp$")
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
.
showSrc(regexp = ".")
showSrc(regexp = ".")
regexp |
A regular expression for the package name(s) with a default of all (".") |
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
.
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.
Dirk Eddelbuettel
showSrc("^r-(base|doc)-") showSrc("r-cran-rcpp") # also finds RcppEigen and RcppArmadillo showSrc("r-cran-rcpp$") # just Rcpp
showSrc("^r-(base|doc)-") showSrc("r-cran-rcpp") # also finds RcppEigen and RcppArmadillo showSrc("r-cran-rcpp$") # just Rcpp
The APT Package Management system uses a data-rich caching structure. This accessor function tests whether a given package exists.
suitable()
suitable()
CRAN does not manage to blacklist this package for builds where it has little to no chance of building (macOS amongt them). So we now build everywhere whether it makes sense or not.
A boolean result vector is returned indicating if the system is making any sense at all.
Dirk Eddelbuettel
suitable()
suitable()