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

Description Usage Arguments Examples

View source: R/library_install.R

Description

Load a multiple packages, install most recent versions if missing

Usage

1
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

1
2
3
4
5
6
7
library_install('utils')

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

## End(Not run)

simpleSetup documentation built on May 1, 2019, 8:51 p.m.