Learn R Programming

renv (version 1.0.7)

modify: Modify a Lockfile

Description

Modify a project's lockfile, either interactively or non-interactively.

Usage

modify(project = NULL, changes = NULL)

Value

The project directory, invisibly. Note that this function is normally called for its side effects.

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.

changes

A list of changes to be merged into the lockfile. When NULL (the default), the lockfile is instead opened for interactive editing.

Details

After edit, if the lockfile edited is associated with the active project, any state-related changes (e.g. to R repositories) will be updated in the current session.

Examples

Run this code
if (FALSE) {

# modify an existing lockfile
if (interactive())
  renv::modify()

}

Run the code above in your browser using DataLab