~/talk

renv: Project Environments for R

Talkat rstudio::conf 2019 · 2019-01-15..01-18· [devops-and-delivery]
slides:none on file

Creates project-local R libraries by forking the current library on rnv init and writing a lockfile (renv.lock) so snapshot/restore can reinstall exact package versions from CRAN, Bioconductor, GitHub, GitLab or private repos with authentication. Uses a global cache of package installations and links into project libraries to avoid repeated installs and shrink disk use — author reports a tidyverse install taking ~6–7 minutes without caching. Lockfile is JSON and is intended for time capsules, collaboration, and deployment.

AI-written summary · about

  1. 0:00What this talk covers
  2. 0:40The problem: why an R project breaks later
  3. 1:17What Packrat was, and what it taught us
  4. 4:08How R finds packages: the lay of the land
  5. 5:13What a library path is
  6. 8:13The challenge: one library, many projects
  7. 10:01The solution: a project library and a lockfile
  8. 10:51Initialising renv in a project
  9. 13:09Saving and loading the project state
  10. 13:41snapshot: recording what you have
  11. 14:42What a lockfile records, with an example
  12. 15:56restore: rebuilding the environment
  13. 17:48The global package cache
  14. 19:15How package installation works with renv
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.