Dependency analysis on package weights

General information

CRAN link link
Package version1.0.4
Number of strong dependencies97
Number of all dependencies97
Number of parent packages4
Max heaviness from parent packages23
Total heaviness from parent packages51
Number of parent packages (including Suggests and Enhances)4
Max co-heaviness from parent packages ("mice" and "Hmisc")14

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports methods stats utils grid grDevices graphics splines tools parallel lattice Matrix digest glue MASS rlang tibble withr magrittr nlme lifecycle R6 ellipsis fansi pillar pkgconfig vctrs cli crayon utf8 ggplot2 gtable isoband mgcv scales RColorBrewer stringr rstudioapi viridisLite farver labeling munsell stringi evaluate backports jsonlite colorspace Rcpp survival Formula latticeExtra cluster rpart nnet foreign gridExtra data.table htmlTable viridis htmltools base64enc png jpeg knitr checkmate htmlwidgets fastmap highr yaml xfun gtools boot minqa nloptr RcppEigen testthat brio callr desc pkgload praise processx ps waldo rprojroot diffobj rematch2 broom dplyr generics tidyr cpp11 purrr tidyselect 0 1 2 3 Imported methods 0 20 40 60 Required packages 0 10 20 Heaviness from parents Hmisc gdata lme4 mice In total 97 packages are required directly or indirectly (97) when installing 'weights' (1.0.4) Depends Imports Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'weights' Imported functions


Dependency table

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

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on weights
Hmisc Depends 3 0 0 67 23
lme4 Imports 1 0 0 49 18
mice Imports 1 0 0 50 8
gdata Imports 1 0 0 4 2

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 weights Co-heaviness as Jaccard coeffcient
Hmisc mice 14 0.311

Analysis was done with pkgndep.