Optional Content
This section dives deeper into {renv} internals and advanced workflows. It’s intended for users with more sophisticated use cases or troubleshooting needs.
- Caching — How {renv} caches packages to save disk space and speed up installations, and where those caches live on your system.
embed()anduse()— Two lesser-known functions for embedding dependency information directly in scripts and temporarily using packages without installing them.- Troubleshooting {renv} — What to do when a project won’t open or restore: diagnosing version mismatches, switching R versions, and fully resetting a broken {renv} project as a last resort.
- Managing R Versions with
rig— Install and switch between multiple versions of R withrig, and run {renv} projects with the R version they expect. - Advanced Topics — Customizing {renv} settings, handling system dependencies, and other advanced configuration options.