mylib: Easily load multiple libraries without many library calls

Description Usage Arguments See Also Examples

View source: R/mylib.R

Description

Takes an itemized listing of R package names and loads them all. If the package is not currently installed, the function will attempt to install the package first. Currently only works if package is available on CRAN.

Usage

1
mylib(..., suppress = TRUE)

Arguments

...

An itemized listing of R package names to either install and load, or just load.

suppress

A boolean indicator defaulted to TRUE that suppresses package messages when loaded. Set to FALSE to view all messages.

See Also

library, require, install.packages

Examples

1
2
3
4
5
## Not run: 
mylib(c("RPostgreSQL", "stringr", "dplyr"))
mylib("data.table")

## End(Not run)

Paul-James/pjames documentation built on Aug. 9, 2019, 12:18 p.m.