Learn R Programming

renv (version 0.7.0-7)

history: View Lockfile History

Description

Use your version control system to find prior versions of the renv.lock file that have been used in your project.

Usage

history(project = NULL)

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.

Details

The history() function is currently only implemented for projects using git for version control.

Examples

Run this code
# NOT RUN {
# get history of previous versions of renv.lock in VCS
db <- renv::history()

# choose an older commit
commit <- db$commit[5]

# revert to that version of the lockfile
renv::revert(commit = commit)

# }

Run the code above in your browser using DataLab