Learn R Programming

caroline (version 0.9.9)

install.prev.pkg: Install the next oldest package

Description

This funciton will recursively search the package archives backwards in time until it finds a version that installs successfully. This function is useful for installing or troubleshooting package dependency trees where one or more packages "require" the very most recent version of R. Rather than upgrading your base R installation, you can use this function to search back in time until you find a version of the package that works with your existing version of R.

Usage

install.prev.pkg(pkg.nm, version=NULL, 
  repo.url='https://cran.r-project.org/src/contrib/Archive/')

Value

NULL

Arguments

pkg.nm

The package name.

version

The version number as #.#-# or #.#.# .

repo.url

The base url for archives of old versions of packages on CRAN.

Examples

Run this code
#install.prev.pkg('mnormt')
#install.prev.pkg('mvtnorm')

Run the code above in your browser using DataLab