libraries: libraries()

Description Usage Arguments Details Examples

View source: R/libraries.R

Description

A vectorized version of the library function that accepts one or more package names to call library on. Unlike library, the libraries function does not use non-standard evaluation (NSE) on its inputs, meaning that you must supply your package names as strings, or as variables.

Usage

1

Arguments

...

one or more package names or package_obj objects

Details

You may supply either package names and package_obj objects to this function. You may also add :: to the end of a package name to load the package instead of attaching the package (this means that the package will not be added to the search list, but will be available to access via the :: operator).

Examples

1
2
3
4
5
## Not run: 
libraries("dplyr", "ggplot2", "rvest", "magrittr")
libraries("dplyr::", "Rdatatable/data.table")

## End(Not run)

easypackages documentation built on May 2, 2019, 3:35 p.m.