Learn R Programming

⚠️There's a newer version (1.0.7) of this package.Take me there.

renv

Overview

The renv package is a new effort to bring private project-local R libraries to your projects. The goal is for renv to be a robust, stable replacement for the Packrat package, with fewer surprises and better default behaviors.

Workflow

The general workflow when working with renv is:

  1. Call renv::init() to initialize a new project-local environment, with a private R library;

  2. Work in the project as normal, installing and removing new R packages as they are needed in the project,

  3. Call renv::snapshot() to save the state of the project library to the lockfile (called renv.lock),

  4. Call renv::restore() to restore the state of the project library, based on the state of the lockfile previously generated by renv::snapshot().

See the Introduction vignette for more details.

Copy Link

Version

Install

install.packages('renv')

Monthly Downloads

213,208

Version

0.3.0-40

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 12th, 2024

Functions in renv (0.3.0-40)

equip

Install Required System Libraries
renv-package

Project-local Environments for R
restore

Restore a Project
upgrade

Upgrade renv
use_python

Use Python
activate

Activate a Project
deactivate

Deactivate a Project
dependencies

Find R Package Dependencies in a Project
clean

Clean a Project
lockfile

Lockfiles
revert

Revert Lockfile
settings

Settings
modify

Open the Lockfile for Editing
purge

Purge Packages from the Cache
remove

Remove Packages
hydrate

Hydrate a Project
init

Initialize a Project
install

Install Packages
load

Load a Project
paths

Path Customization
project

Retrieve the Active Project
history

View Lockfile History
snapshot

Snapshot a Project
status

Status