Skip to contents

Loads a list of libraries, installs when necessary

Usage

load_or_install(wants, repo = "https://cloud.r-project.org/")

Arguments

wants

A list of R modules available on CRAN

repo

string containing repo to be passed to install.packages

Examples

if (FALSE) {
load_or_install(c('tidyverse', 'Hmisc', 'glmnet'))
}