Dependency analysis on package caret

General information

CRAN link link
Package version6.0-92
Number of strong dependencies81
Number of all dependencies200
Number of parent packages16
Max heaviness from parent packages27
Total heaviness from parent packages49
Number of parent packages (including Suggests and Enhances)48
Max co-heaviness from parent packages ("recipes" and "ggplot2")15

Dependency heatmap

In the following dependency heatmap, rows are the parent packages of caret and columns are the dependency packages that each parent package brings in. On the right side of the heatmap, there are three barplot annotations: 1. number of imported functions/S4 methods/S4 classes from parent packages; 2. number of dependency packages from each parent package; 3. heaviness of each parent package on caret.

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests stats utils grDevices methods graphics grid tools splines parallel stats4 lattice glue MASS magrittr Rcpp digest Matrix R6 rlang crayon tibble withr lifecycle ellipsis fansi pillar pkgconfig vctrs cli utf8 codetools class survival stringr stringi KernSmooth generics purrr tidyselect nnet nlme plyr dplyr tidyr rpart prodlim cpp11 lava future.apply progressr numDeriv SQUAREM future globals listenv parallelly iterators proxy gower hardhat ipred lubridate timeDate gtable isoband mgcv scales farver labeling munsell RColorBrewer viridisLite colorspace data.table jsonlite evaluate yaml highr xfun rprojroot rstudioapi rematch2 gtools mime htmltools fastmap bslib base64enc sass jquerylib fs rappdirs brio callr desc pkgload praise processx ps waldo diffobj foreach Formula plotmo TeachingDemos plotrix ISwR corpcor pls ROCR gplots caTools bitops cluster reshape2 rex httr lazyeval curl openssl askpass sys mvtnorm modeltools strucchange coin zoo sandwich libcoin matrixStats multcomp TH.data knitr tinytex brglm lme4 qvcalc profileModel boot minqa nloptr RcppEigen testthat recipes RANN ROSE combinat questionr shiny miniUI styler classInt labelled httpuv xtable fontawesome sourcetools later promises commonmark cachem R.cache e1071 haven R.methodsS3 R.oo R.utils forcats hms readr clipr vroom tzdb bit64 progress bit prettyunits 0 20 40 Imported methods 0 20 40 60 80 Required packages 0 20 40 Heaviness from parents lattice ggplot2 grDevices methods stats stats4 utils foreach plyr withr ModelMetrics pROC nlme e1071 reshape2 recipes fastICA mlbench RANN randomForest ellipse nnet proxy rpart kernlab pls MASS gam Matrix mda earth subselect spls mgcv superpc MLmetrics pamr knitr Cubist covr dplyr party rmarkdown ipred testthat BradleyTerry2 themis klaR In total 81 packages are required directly or indirectly (200) when installing 'caret' (6.0-92) Depends Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'caret' Imported functions The whole namespace is imported Package is listed in 'Imports' but namespace is not imported


Dependency table

"Import" information is from the NAMESPACE file of caret.

imports: number of imported functions/objects; importMethods: number of imported S4 methods; importClasses: number of imported S4 classes.

Required packages: number of strong dependency packages for each of the parent package (or in other words, number of dependency packages the parent package brings in).

Heaviness from parent on caret: number of required packages that can be reduced if moving parent package to Suggests of caret.

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on caret
ggplot2 Depends The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 37 11
lattice Depends The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 5 0
recipes Imports 6 0 0 56 27
reshape2 Imports The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 10 3
foreach Imports The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 3 2
ModelMetrics Imports 1 0 0 4 2
e1071 Imports Parent package is listed in Imports of caret but no object from parent package is imported. 8 2
stats4 Imports 1 0 0 0 1
pROC Imports 1 0 0 4 1
grDevices Imports 1 0 0 0 0
methods Imports The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 0 0
stats Imports 51 0 0 0 0
utils Imports 12 0 0 0 0
plyr Imports 1 0 0 3 0
withr Imports 1 0 0 3 0
nlme Imports The whole set of functions/methods/classes from parent package is imported to the namespace of caret. 6 0
klaR Suggests No object is imported into the namespace of caret. 81 46
BradleyTerry2 Suggests No object is imported into the namespace of caret. 54 25
rmarkdown Suggests No object is imported into the namespace of caret. 27 16
testthat Suggests No object is imported into the namespace of caret. 36 15
covr Suggests No object is imported into the namespace of caret. 20 11
party Suggests No object is imported into the namespace of caret. 24 11
MLmetrics Suggests No object is imported into the namespace of caret. 11 6
earth Suggests No object is imported into the namespace of caret. 8 5
knitr Suggests No object is imported into the namespace of caret. 12 5
subselect Suggests No object is imported into the namespace of caret. 8 3
themis Suggests No object is imported into the namespace of caret. 59 3
spls Suggests No object is imported into the namespace of caret. 9 2
pamr Suggests No object is imported into the namespace of caret. 11 2
fastICA Suggests No object is imported into the namespace of caret. 0 1
mlbench Suggests No object is imported into the namespace of caret. 0 1
RANN Suggests No object is imported into the namespace of caret. 0 1
randomForest Suggests No object is imported into the namespace of caret. 1 1
ellipse Suggests No object is imported into the namespace of caret. 2 1
kernlab Suggests No object is imported into the namespace of caret. 4 1
pls Suggests No object is imported into the namespace of caret. 4 1
gam Suggests No object is imported into the namespace of caret. 6 1
mda Suggests No object is imported into the namespace of caret. 7 1
superpc Suggests No object is imported into the namespace of caret. 10 1
Cubist Suggests No object is imported into the namespace of caret. 15 1
nnet Suggests No object is imported into the namespace of caret. 2 0
proxy Suggests No object is imported into the namespace of caret. 2 0
rpart Suggests No object is imported into the namespace of caret. 3 0
MASS Suggests No object is imported into the namespace of caret. 5 0
Matrix Suggests No object is imported into the namespace of caret. 7 0
mgcv Suggests No object is imported into the namespace of caret. 10 0
dplyr Suggests No object is imported into the namespace of caret. 20 0
ipred Suggests No object is imported into the namespace of caret. 30 0

The following table lists pairs of parent packages with co-heaviness larger than 10. The co-heaviness measures the number of additional dependencies that two parent packages simultaneously import and are only imported by the two parents.

Note the co-heaviness from parents can be always easily observed in the dependency heatmap.

Parent 1 Parent 2 Co-heaviness on caret Co-heaviness as Jaccard coeffcient
ggplot2 recipes 15 0.283

Analysis was done with pkgndep.