load_package | R Documentation |
Loads the listed packages only
load_package(package1, ...)
package1 |
R package. |
... |
Any additional R packages. |
Load package1
and other packages listed in the arguments ...
.
maloneypatr, Irucka Embry
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/.
install_load
if you are wanting to install and load packages
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.