isAvailable | R Documentation |
Convenience function for checking and installing required packages.
isAvailable(pkg, type = c("annotation", "software", "data"))
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. |
Checks whether a required package is available in the library. If yes, the
package is loaded via requireNamespace
. If not, the package is
optionally installed via install
and,
subsequently, loaded via requireNamespace
.
None. See details.
Ludwig Geistlinger <Ludwig.Geistlinger@sph.cuny.edu>
require
, install
isAvailable("EnrichmentBrowser", type="software")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.