reqLibs: Download/load libraries

Description Usage Arguments Author(s) See Also Examples

View source: R/reqLibs.R

Description

reqLibs loads a list of libraries by searching the R packages directory and calling the library function. If a library is missing from the R packages directory, the function will download the library from CRAN along with all dependancies.

Usage

1
reqLibs(package)

Arguments

package

A list of packages to load/download

Author(s)

P. A. Harrison

See Also

library

Examples

1
2
3
# load the following libraries
libs <- c("ggplot2", "raster")
PUCA::reqLibs(libs)

peteraharrison/PUCA documentation built on Sept. 16, 2019, 7:56 a.m.