load_package: Load Packages

load_packageR Documentation

Load Packages

Description

Loads the listed packages only

Usage

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, Win Vector LLC. See https://win-vector.com/2012/10/09/error-handling-in-r/.

See Also

install_load if you are wanting to install and load packages

Examples

## 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 Aug. 21, 2023, 9:09 a.m.