Dependency analysis on package brms

General information

CRAN link link
Package version2.17.0
Number of strong dependencies123
Number of all dependencies187
Number of parent packages24
Max heaviness from parent packages37
Total heaviness from parent packages47
Number of parent packages (including Suggests and Enhances)48
Max co-heaviness from parent packages ("shinystan" and "rstan")12

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests utils stats methods graphics grDevices grid tools parallel splines stats4 lattice Rcpp glue R6 magrittr digest Matrix rlang nlme lifecycle crayon cli withr ellipsis MASS tibble fansi pillar pkgconfig vctrs utf8 scales farver labeling munsell RColorBrewer viridisLite colorspace backports desc rprojroot gtable isoband mgcv ps jsonlite checkmate matrixStats stringr stringi ggplot2 callr processx generics RcppEigen RcppParallel mvtnorm abind tensorA numDeriv dplyr tidyselect purrr coda distributional loo xtable htmltools fastmap bslib jquerylib xfun base64enc sass yaml fs rappdirs StanHeaders inline gridExtra pkgbuild BH prettyunits ggridges posterior reshape2 plyr httpuv mime fontawesome sourcetools later promises commonmark cachem globals listenv parallelly codetools Brobdingnag shiny bayesplot colourpicker DT dygraphs gtools markdown rstan shinyjs shinythemes threejs xts htmlwidgets miniUI crosstalk zoo igraph lazyeval evaluate boot brio pkgload praise waldo rstudioapi diffobj rematch2 minqa nloptr testthat RcppArmadillo highr lme4 estimability R.methodsS3 R.oo R.utils R.cache evd msm gsl survival expm ape corpcor cubature sp spData sf deldir units s2 e1071 raster classInt DBI wk class proxy terra KernSmooth knitr tinytex broom tidyr cpp11 rstantools gamm4 0 5 10 Imported methods 0 50 100 Required packages 0 10 20 30 Heaviness from parents methods Rcpp matrixStats nleqslv stats utils parallel grDevices backports glue abind loo nlme coda Matrix future mgcv rstantools bridgesampling ggplot2 posterior rstan bayesplot shinystan cmdstanr mnormt digest gtable RWiener statmod extraDistr processx splines2 diffobj emmeans R.rsp ape knitr rtdists MCMCglmm spdep rmarkdown shiny testthat lme4 mice arm projpred In total 123 packages are required directly or indirectly (187) when installing 'brms' (2.17.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 'brms' 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 brms.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on brms
methods Depends The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 0 0
Rcpp Depends The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 2 0
shinystan Imports 1 0 0 111 37
future Imports Parent package is listed in Imports of brms but no object from parent package is imported. 8 5
bridgesampling Imports 3 0 0 27 3
nleqslv Imports Parent package is listed in Imports of brms but no object from parent package is imported. 0 1
rstantools Imports 14 0 0 10 1
matrixStats Imports Parent package is listed in Imports of brms but no object from parent package is imported. 0 0
stats Imports The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 0 0
utils Imports Parent package is listed in Imports of brms but no object from parent package is imported. 0 0
parallel Imports The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 0 0
grDevices Imports 1 0 0 0 0
backports Imports Parent package is listed in Imports of brms but no object from parent package is imported. 0 0
glue Imports Parent package is listed in Imports of brms but no object from parent package is imported. 1 0
abind Imports The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 2 0
loo Imports 11 0 0 6 0
nlme Imports 3 0 0 6 0
coda Imports 1 0 0 6 0
Matrix Imports Parent package is listed in Imports of brms but no object from parent package is imported. 7 0
mgcv Imports Parent package is listed in Imports of brms but no object from parent package is imported. 10 0
ggplot2 Imports The whole set of functions/methods/classes from parent package is imported to the namespace of brms. 37 0
posterior Imports 13 0 0 47 0
rstan Imports 0 1 0 58 0
bayesplot Imports 6 0 0 58 0
spdep Suggests No object is imported into the namespace of brms. 27 17
projpred Suggests No object is imported into the namespace of brms. 74 16
arm Suggests No object is imported into the namespace of brms. 52 14
lme4 Suggests No object is imported into the namespace of brms. 49 13
testthat Suggests No object is imported into the namespace of brms. 36 9
rtdists Suggests No object is imported into the namespace of brms. 16 6
R.rsp Suggests No object is imported into the namespace of brms. 9 5
rmarkdown Suggests No object is imported into the namespace of brms. 27 5
MCMCglmm Suggests No object is imported into the namespace of brms. 17 4
mice Suggests No object is imported into the namespace of brms. 50 4
knitr Suggests No object is imported into the namespace of brms. 12 3
splines2 Suggests No object is imported into the namespace of brms. 5 2
emmeans Suggests No object is imported into the namespace of brms. 8 2
cmdstanr Suggests No object is imported into the namespace of brms. 0 1
mnormt Suggests No object is imported into the namespace of brms. 0 1
RWiener Suggests No object is imported into the namespace of brms. 2 1
statmod Suggests No object is imported into the namespace of brms. 2 1
extraDistr Suggests No object is imported into the namespace of brms. 3 1
diffobj Suggests No object is imported into the namespace of brms. 6 1
ape Suggests No object is imported into the namespace of brms. 11 1
digest Suggests No object is imported into the namespace of brms. 1 0
gtable Suggests No object is imported into the namespace of brms. 1 0
processx Suggests No object is imported into the namespace of brms. 3 0
shiny Suggests No object is imported into the namespace of brms. 34 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 brms Co-heaviness as Jaccard coeffcient
rstan shinystan 12 0.245

Analysis was done with pkgndep.