versions (version 0.3)

install.versions: install.versions

Description

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

Usage

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

Run this code

## 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)

Run the code above in your browser using DataLab