Exercises
Put what you’ve learned into practice with hands-on walkthroughs. Each exercise provides step-by-step instructions and highlights common pitfalls.
- Init and Snapshot — Initialize {renv} in a project and take a snapshot of its dependencies.
- Restore — Recreate a project environment from an existing lockfile.
- Explicitly Record — Manually record packages in the lockfile using
dependencies()andrecord().
These exercises use the intro-to-renv-exercises companion repository. Forking and cloning it is recommended but not required.
Back to top