prLibrary: Load and install packages

Description Usage Arguments See Also Examples

Description

The function tries to load all packages passed as argument. For those that are not installed, it tries to install them and then load them.

Usage

1

Arguments

...

name of the packages to load. The names need to be quoted. If a package is missing, the function tries to install it from CRAN by defaults. If a package needs to be installed from github, it can be declared with the following format: "github:username/pkgname". This way, if the package is not installed yet, the function knows how to install it.

warnings

Should the function display warnings?

See Also

prSource

Examples

1
2
3
4
## Not run: 
prLibrary(data.table, plyr)

## End(Not run)

tinyProject documentation built on June 14, 2019, 5:04 p.m.