Skip to contents

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.

Value

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

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.