requireAnnotation {oligoClasses} | R Documentation

## 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.

### Author(s)

Benilton Carvalho

### See Also

install.packages

### Examples

    ## Not run:
    requirePackage("pd.mapping50k.xba240")

    ## End(Not run)

[Package oligoClasses version 1.56.0 Index]