Learn R Programming

install.load (version 1.2.5)

install_load: Check, Install and Load CRAN Packages

Description

Checks the local R library(ies) to see if the required package(s) is/are installed or not. If the package(s) is/are not installed, then the package(s) will be installed along with the required dependency(ies). This function pulls source or binary packages from the 0-Cloud CRAN Repository. Lastly, the chosen package(s) is/are loaded.

Usage

install_load(package1, ...)

Value

Install and load package1 and other packages listed in the arguments ... and all of the dependencies.

Arguments

package1

R package.

...

Any additional R packages.

Author

maloneypatr, Irucka Embry

See Also

load_package to only load packages, installed.packages, install.packages

Examples

Run this code
if (FALSE) {
library("install.load")
# This will install, if not already installed, and load the package(s)
install_load("chron")
install_load("chron", "data.table", "dataRetrieval", "EGRET", "dplyr")
}


Run the code above in your browser using DataLab