powered by
The APT Package Management system uses a data-rich caching structure. This accessor function tests whether a given package exists.
hasPackages(pkg)
A boolean result vector is returned indicating if the package at the given position is available.
A character vector with name of the package
Dirk Eddelbuettel
hasPackages(c("r-base-core", "somethingThatDoesNotExist"))
Run the code above in your browser using DataLab