Dependency analysis on package WeightIt

General information

CRAN link link
Package version0.12.0
Number of strong dependencies41
Number of all dependencies120
Number of parent packages4
Max heaviness from parent packages2
Total heaviness from parent packages2
Number of parent packages (including Suggests and Enhances)21
Max co-heaviness from parent packages ("cobalt" and "ggplot2")34

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Imports Suggests methods stats utils grDevices graphics grid splines parallel tools lattice Matrix MASS glue rlang R6 magrittr crayon digest lifecycle ellipsis fansi pillar vctrs cli utf8 tibble pkgconfig gtable isoband mgcv scales withr nlme farver labeling munsell RColorBrewer viridisLite colorspace ggplot2 backports gridExtra Rcpp survival numDeriv data.table jsonlite nnet evaluate highr stringr yaml xfun stringi minqa mitools DBI foreach codetools iterators htmltools base64enc fastmap enrichwith nnls gam cvAUC ROCR gplots gtools caTools KernSmooth bitops MatchIt glmnet RcppProgress shape RcppEigen memisc repr bslib jquerylib knitr tinytex sass fs rappdirs dfidx Formula zoo lmtest statmod Rdpack dplyr rbibutils generics tidyselect purrr osqp gbm survey xtable latticeExtra MatrixModels xgboost png jpeg 0 1 2 3 Imported methods 0 20 40 Required packages 0 5 10 15 Heaviness from parents backports crayon ggplot2 cobalt ATE boot dbarts MASS MNP osqp gbm brglm2 knitr survey SuperLearner CBPS mclogit rmarkdown mlogit optweight twang In total 41 packages are required directly or indirectly (120) when installing 'WeightIt' (0.12.0) Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'WeightIt' 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 WeightIt.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on WeightIt
cobalt Imports Parent package is listed in Imports of WeightIt but no object from parent package is imported. 40 2
backports Imports Parent package is listed in Imports of WeightIt but no object from parent package is imported. 0 0
crayon Imports 3 0 0 3 0
ggplot2 Imports The whole set of functions/methods/classes from parent package is imported to the namespace of WeightIt. 37 0
rmarkdown Suggests No object is imported into the namespace of WeightIt. 27 19
twang Suggests No object is imported into the namespace of WeightIt. 55 18
SuperLearner Suggests No object is imported into the namespace of WeightIt. 19 14
CBPS Suggests No object is imported into the namespace of WeightIt. 23 13
mlogit Suggests No object is imported into the namespace of WeightIt. 34 13
knitr Suggests No object is imported into the namespace of WeightIt. 12 8
mclogit Suggests No object is imported into the namespace of WeightIt. 27 8
survey Suggests No object is imported into the namespace of WeightIt. 15 7
brglm2 Suggests No object is imported into the namespace of WeightIt. 12 4
gbm Suggests No object is imported into the namespace of WeightIt. 11 3
optweight Suggests No object is imported into the namespace of WeightIt. 40 3
dbarts Suggests No object is imported into the namespace of WeightIt. 4 2
osqp Suggests No object is imported into the namespace of WeightIt. 10 2
ATE Suggests No object is imported into the namespace of WeightIt. 0 1
boot Suggests No object is imported into the namespace of WeightIt. 2 1
MNP Suggests No object is imported into the namespace of WeightIt. 6 1
MASS Suggests No object is imported into the namespace of WeightIt. 5 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 WeightIt Co-heaviness as Jaccard coeffcient
ggplot2 cobalt 34 0.944

Analysis was done with pkgndep.