Learn R Programming

renv (version 0.7.0-7)

upgrade: Upgrade renv

Description

Upgrade the version of renv associated with a project.

Usage

upgrade(project = NULL, version = NULL, confirm = interactive())

Arguments

project

The project directory. If NULL, then the active project will be used. If no project is currently active, then the current working directory is used instead.

version

The version of renv to be installed. By default, the latest version of renv as available on the active CRAN repositories is used.

confirm

Boolean; confirm upgrade before proceeding?

Details

By default, this function will attempt to install the latest version of renv as available on the active CRAN repositories. If you'd instead like to try out a development version of renv, you can explicitly request a different version of renv and that version of the package will be downloaded and installed from GitHub. Use version = "master" to install the latest development version of renv, as from the renv project's GitHub page.

Examples

Run this code
# NOT RUN {
# upgrade to the latest version of renv on CRAN
renv::upgrade()

# upgrade to the latest version of renv on GitHub (development version)
renv::upgrade(version = "master")

# }

Run the code above in your browser using DataLab