Solutions Products Open Source Customers Resources

Getting Started with renv

Learn to use renv to manage R package dependencies and create reproducible environments across projects and collaborators.

rate limit

Code not recognized.

Course Objectives

  1. Explain what renv is and why reproducible R environments matter for data science work
  2. Initialize renv in an R project and identify the key files it creates
  3. Install R packages within an renv project
  4. Capture project dependencies in a lockfile using renv::snapshot()
  5. Restore a project environment from a lockfile using renv::restore()

Curriculum24 min

  • renv Basics
  • What is renv?
  • Setting Up renv in Your Project
  • renv Basics
  • Install, Snapshot, Restore
  • Installing Packages and Snapshotting
  • Restoring an Environment
  • Snapshot and Restore
  • Lab
  • The renv Workflow
  • Next Steps
  • Wrap Up

Course Objectives

  1. Explain what renv is and why reproducible R environments matter for data science work
  2. Initialize renv in an R project and identify the key files it creates
  3. Install R packages within an renv project
  4. Capture project dependencies in a lockfile using renv::snapshot()
  5. Restore a project environment from a lockfile using renv::restore()

Curriculum24 min

  • renv Basics
  • What is renv?
  • Setting Up renv in Your Project
  • renv Basics
  • Install, Snapshot, Restore
  • Installing Packages and Snapshotting
  • Restoring an Environment
  • Snapshot and Restore
  • Lab
  • The renv Workflow
  • Next Steps
  • Wrap Up