isAvailable {EnrichmentBrowser}R Documentation

Is a required package available?

Description

Convenience function for checking and installing required packages.

Usage

isAvailable(pkg, type = c("annotation", "software", "data"))

Arguments

pkg

Character vector of length 1. A valid name of an existing R package.

type

Character vector of length 1. What type of package is this? Choose one out of 'annotation', 'software', or 'data' package.

Details

Checks whether a required package is available in the library. If yes, the package is loaded via require. If not, the package is optionally installed via biocLite and, subsequently, loaded via require.

Value

None. See details.

Author(s)

Ludwig Geistlinger <Ludwig.Geistlinger@sph.cuny.edu>

See Also

require, biocLite

Examples


    
        isAvailable("EnrichmentBrowser", type="software")
         


[Package EnrichmentBrowser version 2.10.11 Index]