install.prev.pkg: Install the next oldest package

View source: R/install.prev.pkg.r

install.prev.pkgR Documentation

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/')

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.

Value

NULL

Examples

#install.prev.pkg('mnormt')
#install.prev.pkg('mvtnorm')

caroline documentation built on Nov. 9, 2023, 9:07 a.m.