requireAnnotation: Helper function to load packages.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils-general.R

Description

This function checkes the existence of a given package and loads it if available. If the package is not available, the function checks its availability on BioConductor, downloads it and installs it.

Usage

1
requireAnnotation(pkgname, lib=.libPaths()[1], verbose = TRUE)

Arguments

pkgname

character. Package name (usually an annotation package).

lib

character. Path where to install packages at.

verbose

logical. Verbosity flag.

Value

Logical: TRUE if package is available or FALSE if package unavailable for download.

Author(s)

Benilton Carvalho

See Also

install.packages

Examples

1
2
3
4
## Not run: 
requirePackage("pd.mapping50k.xba240")

## End(Not run)

benilton/oligoClasses documentation built on Dec. 27, 2019, 12:13 a.m.