Created
June 14, 2024 08:54
-
-
Save sebastiansauer/21ea4b4c92156c1ea240a42cc35c7747 to your computer and use it in GitHub Desktop.
Install all missing packages of a given R project/folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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