inst.load.packages: Loads a package called "package" and installs it if necessary

Description Usage Arguments Value Examples

View source: R/inst.load.packages.R

Description

Loads a package called "package" and installs it if necessary

Usage

1
inst.load.packages(package, silent = FALSE, inst.bioclite = FALSE)

Arguments

package

The package you want to load

silent

If "TRUE", no output is generated

instBiocLite

If it is a package from bioconductor, set it to TRUE

Value

loads the "package"

Examples

1
2
3
4
5
6
7
8
inst.load.packages("ggplot2") # loads (& installs) ggplot2
inst.load.packages("ggplot2", silent=TRUE)

# if package not already installed it also installs it with inst.bioclite=TRUE
inst.load.packages("vioplot", inst.bioclite=TRUE)

# if bioconductor package should be installed, inst.bioclite MUST be =TRUE
inst.load.packages("NanoStringQCPro", inst.bioclite=TRUE)

gugl58/basicscriptsGG-Package documentation built on May 17, 2019, 9:08 a.m.