downgrade_packages: Downgrade Packages to the Previous Version

View source: R/install.R

downgrade_packagesR Documentation

Downgrade Packages to the Previous Version

Description

Downgrade packages to the previous version available on CRAN. This is useful in order to prepare the system for a demonstration of package updates.

Usage

downgrade_packages(pkg)

Arguments

pkg

character with the names of the packages to be downgraded.

Details

Downgrading is only possible for packages that are currently installed. For packages that are not installed, a warning is issued.

The function uses remotes::install_version() to install a version of a package that is older than the currently installed version.

Value

A character vector with the names of the downgraded packages, invisibly.


ibawds documentation built on June 17, 2022, 9:07 a.m.