load_package {install.load} | R 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
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.
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)
[Package install.load version 1.2.5 Index]