Dependency analysis on package mediation

General information

CRAN link link
Package version4.5.0
Number of strong dependencies91
Number of all dependencies98
Number of parent packages12
Max heaviness from parent packages37
Total heaviness from parent packages59
Number of parent packages (including Suggests and Enhances)20
Max co-heaviness from parent packages ("Hmisc" and "lme4")22

Dependency heatmap

In the following dependency heatmap, rows are the parent packages of mediation 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 mediation.

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests stats methods graphics grDevices utils grid splines tools parallel stats4 lattice Matrix MASS digest glue rlang tibble withr magrittr rstudioapi nlme lifecycle R6 ellipsis fansi pillar pkgconfig vctrs evaluate jsonlite cli crayon utf8 brio callr desc pkgload praise processx ps waldo rprojroot diffobj rematch2 survival zoo boot minqa nloptr Rcpp RcppEigen testthat Formula ggplot2 latticeExtra cluster rpart nnet foreign gtable gridExtra data.table htmlTable viridis htmltools base64enc isoband mgcv scales png jpeg RColorBrewer stringr knitr checkmate htmlwidgets viridisLite fastmap farver labeling munsell stringi highr yaml xfun backports colorspace SparseM MatrixModels 0 20 40 Imported methods 0 20 40 60 Required packages 0 10 20 30 Heaviness from parents mvtnorm MASS Matrix sandwich lpSolve stats graphics grDevices utils boot lme4 Hmisc SuppDists parallel VGAM survival speedglm mgcv quantreg testthat In total 91 packages are required directly or indirectly (98) when installing 'mediation' (4.5.0) Depends Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'mediation' Imported functions Imported S4 methods Package is listed in 'Imports' but namespace is not imported


Dependency table

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

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 mediation: number of required packages that can be reduced if moving parent package to Suggests of mediation.

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on mediation
sandwich Depends 3 0 0 7 2
mvtnorm Depends 1 0 0 2 1
MASS Depends 3 0 0 5 0
Matrix Depends 1 1 0 7 0
Hmisc Imports 1 0 0 67 37
lme4 Imports 1 0 0 49 18
lpSolve Imports 1 0 0 0 1
stats Imports 46 0 0 0 0
graphics Imports 12 0 0 0 0
grDevices Imports 2 0 0 0 0
utils Imports 1 0 0 0 0
boot Imports Parent package is listed in Imports of mediation but no object from parent package is imported. 2 0
quantreg Suggests No object is imported into the namespace of mediation. 13 3
VGAM Suggests No object is imported into the namespace of mediation. 4 2
SuppDists Suggests No object is imported into the namespace of mediation. 0 1
speedglm Suggests No object is imported into the namespace of mediation. 9 1
parallel Suggests No object is imported into the namespace of mediation. 0 0
survival Suggests No object is imported into the namespace of mediation. 9 0
mgcv Suggests No object is imported into the namespace of mediation. 10 0
testthat Suggests No object is imported into the namespace of mediation. 36 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 mediation Co-heaviness as Jaccard coeffcient
lme4 Hmisc 22 0.286

Analysis was done with pkgndep.