install.versions: install.versions

Description Usage Arguments Examples

Description

Download and install named versions of packages hosted on CRAN from the MRAN server.

Usage

1
install.versions(pkgs, versions, lib, ...)

Arguments

pkgs

character vector of the names of packages that should be downloaded and installed

versions

character vector of the versions of packages to be downloaded and installed. If this has the same length as pkgs versions will correspond to those packages. If this has length one the same version will be used for all packages. If it has any other length an error will be thrown.

lib

character vector giving the library directories where to install the packages. Recycled as needed. If missing, defaults to the first element of .libPaths().

...

other arguments to be passed to install.packages. The arguments repos and contriburl (at least) will be ignored as the function uses the MRAN server to retrieve package versions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

# install an earlier version of checkpoint
install.versions('checkpoint', '0.3.3')

# install earlier versions of checkpoint and devtools
install.versions(c('checkpoint', 'devtools'), c('0.3.3', '1.6.1'))


## End(Not run)

versions documentation built on May 2, 2019, 7:58 a.m.