Reproducible Environments
Megumi Oshima & Nicholas Ducharme-Barth
January 2025
renv
is an R package to help create reproducible environments
renv::init()
renv/library/
renv.lock
.Rprofile
renv::install()
- can specify the location and version you want
As you install new packages you will need to update the lockfile
renv::snapshot()
- updates lockfile with metadata about all currently-used packages
renv::restore()
- reproduces the environment specified in the lockfile
setup-renv
action in your workflowISC Open Science Workflows Workshop 2025