Skip to content

Instantly share code, notes, and snippets.

@sebastiansauer
Created June 14, 2024 08:54
Show Gist options
  • Save sebastiansauer/21ea4b4c92156c1ea240a42cc35c7747 to your computer and use it in GitHub Desktop.
Save sebastiansauer/21ea4b4c92156c1ea240a42cc35c7747 to your computer and use it in GitHub Desktop.
Install all missing packages of a given R project/folder
out <- renv::dependencies()
ps <- out$Package %>% unique()
missing <- setdiff(ps, installed.packages()) # can take a long time
missing
install.packages(missing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment