Description Usage Arguments Value Author(s) See Also Examples
Get all dependencies
1 2 3 4 | get_all_dependencies(packages, level = 1L, relation = c("Depends",
"Imports", "LinkingTo", "Suggests", "Enhances"), strict = FALSE,
ignore = c("datasets", "utils", "grDevices", "graphics", "stats",
"methods"))
|
packages |
(non-empty character vector) Package names |
level |
(positive integer, Default = 1L) Depth of recursive dependency |
relation |
(character vector) Types of relations. Must be a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances") |
strict |
(logical, Default: TRUE) Whether to consider all packages (alternately only 'relation' specific packages) when computing dependencies for the next level |
ignore |
package names to ignore |
A tibble with three columns: 'pkg_1', 'relation' and 'pkg_2'
Srikanth KS
1 2 3 4 5 6 7 8 9 10 11 12 | pkggraph::init(local = TRUE)
# general use
pkggraph::get_all_dependencies("mlr")
# specify two levels
pkggraph::get_all_dependencies("mlr", level = 2)
# specify relation(s)
pkggraph::get_all_dependencies("mlr", level = 2, relation = "Imports")
# setting strict to TRUE to only consider 'Imports' of the previous level
pkggraph::get_all_dependencies("mlr"
, level = 2
, relation = "Imports"
, strict = TRUE)
|
Loading required package: ggnetwork
Loading required package: ggplot2
Loading required package: data.table
Using 'local' data ...
To fetch data from CRAN over internet, run:`pkggraph::init(local = FALSE)`
Done!
# A tibble: 111 x 3
pkg_1 relation pkg_2
<chr> <fct> <chr>
1 mlr Depends ParamHelpers
2 mlr Imports BBmisc
3 mlr Imports backports
4 mlr Imports ggplot2
5 mlr Imports stringi
6 mlr Imports checkmate
7 mlr Imports data.table
8 mlr Imports parallelMap
9 mlr Imports survival
10 mlr Suggests ada
# ... with 101 more rows
# A tibble: 807 x 3
pkg_1 relation pkg_2
<chr> <fct> <chr>
1 ada Depends rpart
2 adabag Depends rpart
3 adabag Depends mlbench
4 adabag Depends caret
5 bartMachine Depends rJava
6 bartMachine Depends bartMachineJARs
7 bartMachine Depends car
8 bartMachine Depends randomForest
9 bartMachine Depends missForest
10 batchtools Depends data.table
# ... with 797 more rows
# A tibble: 221 x 3
pkg_1 relation pkg_2
<chr> <fct> <chr>
1 batchtools Imports backports
2 batchtools Imports base64url
3 batchtools Imports brew
4 batchtools Imports checkmate
5 batchtools Imports digest
6 batchtools Imports parallel
7 batchtools Imports progress
8 batchtools Imports R6
9 batchtools Imports rappdirs
10 batchtools Imports stringi
# ... with 211 more rows
# A tibble: 25 x 3
pkg_1 relation pkg_2
<chr> <fct> <chr>
1 BBmisc Imports checkmate
2 checkmate Imports backports
3 ggplot2 Imports digest
4 ggplot2 Imports grid
5 ggplot2 Imports gtable
6 ggplot2 Imports MASS
7 ggplot2 Imports plyr
8 ggplot2 Imports reshape2
9 ggplot2 Imports scales
10 ggplot2 Imports tibble
# ... with 15 more rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.