Learn R Programming

tinyProject (version 0.6.1)

prLibrary: Load and install packages

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

prLibrary(..., warnings = FALSE)

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

Run this code
# NOT RUN {
prLibrary(data.table, plyr)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab