GetPackageR Documentation

Helper to install (if needed) and load a package

Description

Given a package name, either as a string or object, load the package if it exists, else install it from CRAN and then load

Usage

GetPackage(package)

Arguments

package

A character vector of packages to load

Examples

## Not run: 

GetPackage('gam')


## End(Not run)