Learn R Programming

oligo (version 1.36.1)

requireAnnotation: Helper function to load packages.

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

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.

See Also

install.packages

Examples

Run this code
requirePackage("pd.mapping50k.xba240")

Run the code above in your browser using DataLab