Learn R Programming

simpleSetup (version 0.1.0)

library_install: Load a multiple packages, install most recent versions if missing

Description

Load a multiple packages, install most recent versions if missing

Usage

library_install(pkgs, repos = "http://cran.us.r-project.org", ...)

Arguments

pkgs
character vector of packages names.
repos
character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "https://cloud.r-project.org".
...
arguments passed to install.packages.

Examples

Run this code
library_install('utils')

## Not run: 
# packages <- c('networkD3', 'coreSim')
# library_install(packages)
# ## End(Not run)

Run the code above in your browser using DataLab