Dependency analysis on package rstanarm

General information

CRAN link link
Package version2.21.3
Number of strong dependencies127
Number of all dependencies146
Number of parent packages18
Max heaviness from parent packages36
Total heaviness from parent packages51
Number of parent packages (including Suggests and Enhances)30
Max co-heaviness from parent packages ("shinystan" and "bayesplot")15

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports LinkingTo Suggests utils methods stats grDevices graphics grid tools splines parallel stats4 lattice glue Matrix R6 magrittr cli rlang digest Rcpp withr crayon desc rprojroot tibble lifecycle vctrs pillar ellipsis fansi pkgconfig utf8 nlme gtable MASS evaluate stringr stringi checkmate matrixStats backports RcppParallel isoband mgcv scales farver labeling munsell RColorBrewer viridisLite colorspace RcppEigen callr jsonlite processx ps xfun yaml pkgload rstudioapi ggplot2 purrr brio praise waldo diffobj rematch2 dplyr ggridges posterior reshape2 tidyselect generics plyr abind tensorA distributional numDeriv StanHeaders inline gridExtra loo pkgbuild BH prettyunits htmltools fastmap commonmark bslib jquerylib zoo base64enc sass fs rappdirs boot minqa nloptr testthat shiny bayesplot colourpicker DT dygraphs gtools markdown rstan shinyjs shinythemes threejs xtable xts httpuv mime fontawesome sourcetools later promises cachem htmlwidgets miniUI crosstalk igraph lazyeval highr knitr DBI flexmix Formula lmtest modeltools sandwich nnet tinytex brew xml2 cpp11 0 10 20 Imported methods 0 50 100 Required packages 0 10 20 30 Heaviness from parents methods Rcpp stats RcppParallel utils loo nlme Matrix survival rstantools ggplot2 lme4 bayesplot rstan shinystan BH RcppEigen StanHeaders data.table digest HSAUR3 biglm gridExtra MASS mgcv knitr betareg rmarkdown roxygen2 testthat In total 127 packages are required directly or indirectly (146) when installing 'rstanarm' (2.21.3) Depends Imports LinkingTo Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'rstanarm' Imported functions Imported S4 methods 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 rstanarm.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on rstanarm
methods Depends The whole set of functions/methods/classes from parent package is imported to the namespace of rstanarm. 0 0
Rcpp Depends The whole set of functions/methods/classes from parent package is imported to the namespace of rstanarm. 2 0
shinystan Imports The whole set of functions/methods/classes from parent package is imported to the namespace of rstanarm. 111 36
lme4 Imports 13 0 0 49 13
survival Imports 1 0 0 9 1
rstantools Imports 2 0 0 10 1
stats Imports 3 0 0 0 0
RcppParallel Imports Parent package is listed in Imports of rstanarm but no object from parent package is imported. 0 0
utils Imports 4 0 0 0 0
loo Imports 13 0 0 6 0
nlme Imports 1 0 0 6 0
Matrix Imports 2 0 0 7 0
ggplot2 Imports 28 0 0 37 0
bayesplot Imports 2 0 0 58 0
rstan Imports 8 1 0 58 0
BH LinkingTo Parent package is listed in LinkingTo of rstanarm but no object from parent package is imported. 0 0
RcppEigen LinkingTo Parent package is listed in LinkingTo of rstanarm but no object from parent package is imported. 9 0
StanHeaders LinkingTo Parent package is listed in LinkingTo of rstanarm but no object from parent package is imported. 11 0
betareg Suggests No object is imported into the namespace of rstanarm. 15 7
roxygen2 Suggests No object is imported into the namespace of rstanarm. 30 6
rmarkdown Suggests No object is imported into the namespace of rstanarm. 27 4
biglm Suggests No object is imported into the namespace of rstanarm. 2 2
knitr Suggests No object is imported into the namespace of rstanarm. 12 2
data.table Suggests No object is imported into the namespace of rstanarm. 1 1
HSAUR3 Suggests No object is imported into the namespace of rstanarm. 1 1
digest Suggests No object is imported into the namespace of rstanarm. 1 0
gridExtra Suggests No object is imported into the namespace of rstanarm. 5 0
MASS Suggests No object is imported into the namespace of rstanarm. 5 0
mgcv Suggests No object is imported into the namespace of rstanarm. 10 0
testthat Suggests No object is imported into the namespace of rstanarm. 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 rstanarm Co-heaviness as Jaccard coeffcient
bayesplot shinystan 15 0.294

Analysis was done with pkgndep.