Learn R Programming

RcppAPT (version 0.0.10)

hasPackages: Test for Existence of Given Package

Description

The APT Package Management system uses a data-rich caching structure. This accessor function tests whether a given package exists.

Usage

hasPackages(pkg)

Value

A boolean result vector is returned indicating if the package at the given position is available.

Arguments

pkg

A character vector with name of the package

Author

Dirk Eddelbuettel

Examples

Run this code
hasPackages(c("r-base-core", "somethingThatDoesNotExist"))

Run the code above in your browser using DataLab