GetPackage: Helper to install (if needed) and load a package

Description Usage Arguments Examples

View source: R/GetPackage.R

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

1
GetPackage(package)

Arguments

package

A character vector of packages to load

Examples

1
2
3
4
5
6
## Not run: 

GetPackage('gam')


## End(Not run)

zoon documentation built on Feb. 28, 2020, 5:09 p.m.