powered by
Load packages and install them from CRAN if they aren't already available.
load_packages(pkgs = NULL, auto_install = F, update = F, verbose = F, ...)
Character vector of packages to load.
Install any packages that could not be loaded.
Update packages where possible.
If T display more detailed information during execution.
Any additional parameters to pass through to install.packages()
# NOT RUN { # Load these 4 packages and install them if necessary. load_packages(c("MASS", "SuperLearner", "tmle", "doParallel"), auto_install = TRUE) # }
Run the code above in your browser using DataLab