Skip to content

Instantly share code, notes, and snippets.

@PietrH
Created October 27, 2023 09:40
Show Gist options
  • Save PietrH/c5910ed7f039c4f91c7ee73e5d41bec7 to your computer and use it in GitHub Desktop.
Save PietrH/c5910ed7f039c4f91c7ee73e5d41bec7 to your computer and use it in GitHub Desktop.
List R package dependencies using tools
tools::package_dependencies(packages = c("dplyr",
"tidyr",
"readr",
"stringr",
"purrr",
"here",
"tidylog",
"magrittr",
"sf",
"janitor",
"digest",
"rgbif",
"sf"))
@PietrH
Copy link
Author

PietrH commented Oct 27, 2023

Also possible for recursive dependencies:

tools::package_dependencies(packages = c("dplyr",
                                         "tidyr",
                                         "readr",
                                         "stringr",
                                         "purrr",
                                         "here",
                                         "tidylog",
                                         "magrittr",
                                         "sf",
                                         "janitor",
                                         "digest",
                                         "rgbif",
                                         "sf"), recursive = TRUE)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment