Last active
January 30, 2023 21:33
-
-
Save NewGraphEnvironment/d4f357a8c8cbc2576de1cc2c8c90815e to your computer and use it in GitHub Desktop.
list package depedencies in a project and spit out as a glued string to insert into packages.R file for loading with `pacman`
This file contains 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
pack <- renv::dependencies() %>% | |
dplyr::distinct(Package) %>% | |
dplyr::pull(Package) | |
paste(shQuote(pack), collapse=", ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment