the cedar ledge

renv - Reproducible Environments in R

Date: February 8 2021

Summary: Useful state of the art package for reproducing R projects

Keywords: #zettel #r #programming #package #archive

Bibliography

Not Available

Table of Contents

    1. General Workflow When Working with renv
  1. How To Cite
  2. References
  3. Discussion:

General Workflow When Working with renv

  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. Continue working on your project, installing and updating R packages as needed.

  5. Call renv::snapshot() again to save the state of your project library if your attempts to update R packages were successful, or call renv::restore() to revert to the previous state as encoded in the lockfile if your attempts to update packages introduced some new problems.

How To Cite

Zelko, Jacob. renv - Reproducible Environments in R. https://jacobzelko.com/02082021205610-renv-package. February 8 2021.

References

Discussion:

CC BY-SA 4.0 Jacob Zelko. Last modified: May 19, 2024. Website built with Franklin.jl and the Julia programming language.