Skip to content

Instantly share code, notes, and snippets.

@NewGraphEnvironment
Last active January 30, 2023 21:33
Show Gist options
  • Save NewGraphEnvironment/d4f357a8c8cbc2576de1cc2c8c90815e to your computer and use it in GitHub Desktop.
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`
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