load_package: Load Packages

Description Usage Arguments Value Author(s) Source See Also Examples

Description

Loads the listed packages only

Usage

1
load_package(package1, ...)

Arguments

package1

R package.

...

Any additional R packages.

Value

Load package1 and other packages listed in the arguments ....

Author(s)

maloneypatr, Irucka Embry

Source

  1. Check if R package is installed then load library answered by maloneypatr is the source for the original function. See https://stackoverflow.com/questions/15155814/check-if-r-package-is-installed-then-load-library.

  2. Error Handling in R By Nina Zumel, October 9, 2012, R-Bloggers. See http://www.r-bloggers.com/error-handling-in-r/.

See Also

install_load if you are wanting to install and load packages

Examples

1
2
3
4
5
6
7
8
## Not run: 
library("install.load")
# This will only load the package(s)
load_package("chron")

load_package("chron", "data.table", "dataRetrieval", "EGRET", "dplyr")

## End(Not run)

install.load documentation built on July 2, 2020, 2:39 a.m.