isPkgAvailable: Check Availability of R Packages

Description Usage Arguments Value Author(s) See Also Examples

Description

Check the repositories for availability of packages and return a boolean indicating whether the package is found.

Usage

1
isPkgAvailable(pkg, repos = getOption("repos"), version)

Arguments

pkg

package names. Either a single string or an array of strings.

repos

Repositories to search.

version

The specific package version. Currently ignored.

Value

Boolean indicating whether the package is available. One boolean for each package name provided.

Author(s)

Matthew D. Furia matt.furia@sagebase.org

https://github.com/MattNapsAlot

See Also

restorePackages

Examples

1
2
3
4
## Not run: 
ans <- isPkgAvailable(c("Biobase", "stats", "thisIsAFakePackage"))

## End(Not run)

Sage-Bionetworks/sessionTools documentation built on May 9, 2019, 12:13 p.m.