Determine package dependencies.
Examples
old <- options("repos")
options(repos = "https://cran.r-project.org")
getDependencies("tidyverse")
#> [1] "tidyverse" "broom" "conflicted" "cli"
#> [5] "dbplyr" "dplyr" "dtplyr" "forcats"
#> [9] "ggplot2" "googledrive" "googlesheets4" "haven"
#> [13] "hms" "httr" "jsonlite" "lubridate"
#> [17] "magrittr" "modelr" "pillar" "purrr"
#> [21] "ragg" "readr" "readxl" "reprex"
#> [25] "rlang" "rstudioapi" "rvest" "stringr"
#> [29] "tibble" "tidyr" "xml2" "backports"
#> [33] "generics" "glue" "lifecycle" "utils"
#> [37] "memoise" "blob" "DBI" "methods"
#> [41] "R6" "tidyselect" "vctrs" "withr"
#> [45] "data.table" "grDevices" "grid" "gtable"
#> [49] "isoband" "MASS" "mgcv" "scales"
#> [53] "stats" "gargle" "uuid" "cellranger"
#> [57] "curl" "ids" "rematch2" "pkgconfig"
#> [61] "mime" "openssl" "timechange" "utf8"
#> [65] "systemfonts" "textshaping" "clipr" "crayon"
#> [69] "vroom" "callr" "fs" "knitr"
#> [73] "rmarkdown" "selectr" "stringi" "graphics"
#> [77] "processx" "rematch" "rappdirs" "evaluate"
#> [81] "highr" "tools" "xfun" "yaml"
#> [85] "cachem" "nlme" "Matrix" "splines"
#> [89] "askpass" "bslib" "fontawesome" "htmltools"
#> [93] "jquerylib" "tinytex" "farver" "labeling"
#> [97] "RColorBrewer" "viridisLite" "base64enc" "bit64"
#> [101] "tzdb" "lattice" "sys" "bit"
#> [105] "fastmap" "sass" "digest" "ps"
options(old)