Learn R Programming

renv (version 0.6.0-92)

migrate: Migrate a Project from Packrat to renv

Description

Migrate a project's infrastructure from Packrat to renv.

Usage

migrate(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 following actions are taken:

  • The Packrat lockfile is migrated to renv.lock;

  • Packages installed in the Packrat library are migrated to the renv library;

  • Relevant Packrat options (e.g. ignored.packages) are copied;

  • Packages in the Packrat cache are imported into the renv cache;

  • The project .Rprofile is updated to use renv.

Examples

Run this code
# NOT RUN {
# migrate Packrat project infrastructure to renv
renv::migrate()

# }

Run the code above in your browser using DataLab