Dependency analysis on package rstan

General information

CRAN link link
Package version2.21.5
Number of strong dependencies58
Number of all dependencies123
Number of parent packages12
Max heaviness from parent packages24
Total heaviness from parent packages41
Number of parent packages (including Suggests and Enhances)23
Max co-heaviness from parent packages ("pkgbuild" and "ggplot2")5

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports LinkingTo Suggests utils methods stats graphics grDevices grid splines parallel tools stats4 glue Rcpp lattice R6 Matrix magrittr cli digest gtable rlang withr crayon RcppParallel isoband MASS mgcv scales tibble nlme farver labeling lifecycle munsell RColorBrewer viridisLite ellipsis fansi pillar pkgconfig vctrs colorspace utf8 checkmate matrixStats backports desc rprojroot RcppEigen callr prettyunits processx ps stringr stringi jsonlite xfun yaml evaluate highr htmltools fastmap bslib jquerylib base64enc sass fs rappdirs ggplot2 reshape2 dplyr ggridges posterior tidyselect plyr generics abind tensorA distributional purrr numDeriv curl knitr tinytex shiny bayesplot colourpicker DT dygraphs gridExtra gtools markdown rstan shinyjs shinythemes threejs xtable xts httpuv mime fontawesome sourcetools later promises commonmark cachem htmlwidgets miniUI crosstalk zoo StanHeaders inline loo pkgbuild BH igraph lazyeval 0 1 2 3 Imported methods 0 50 100 Required packages 0 20 40 Heaviness from parents StanHeaders ggplot2 methods stats4 RcppParallel inline Rcpp gridExtra loo pkgbuild BH RcppEigen parallel rstudioapi KernSmooth RUnit V8 Matrix rstantools knitr rmarkdown bayesplot shinystan In total 58 packages are required directly or indirectly (123) when installing 'rstan' (2.21.5) 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 'rstan' 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 rstan.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on rstan
ggplot2 Depends The whole set of functions/methods/classes from parent package is imported to the namespace of rstan. 37 24
StanHeaders Depends The whole set of functions/methods/classes from parent package is imported to the namespace of rstan. 11 1
pkgbuild Imports 1 0 0 16 7
loo Imports 3 0 0 6 5
stats4 Imports 2 0 0 0 1
inline Imports 3 0 0 1 1
gridExtra Imports 2 0 0 5 1
methods Imports The whole set of functions/methods/classes from parent package is imported to the namespace of rstan. 0 0
RcppParallel Imports 1 0 0 0 0
Rcpp Imports The whole set of functions/methods/classes from parent package is imported to the namespace of rstan. 2 0
BH LinkingTo Parent package is listed in LinkingTo of rstan but no object from parent package is imported. 0 1
RcppEigen LinkingTo Parent package is listed in LinkingTo of rstan but no object from parent package is imported. 9 0
shinystan Suggests No object is imported into the namespace of rstan. 111 54
rmarkdown Suggests No object is imported into the namespace of rstan. 27 19
bayesplot Suggests No object is imported into the namespace of rstan. 58 16
knitr Suggests No object is imported into the namespace of rstan. 12 8
V8 Suggests No object is imported into the namespace of rstan. 5 3
rstudioapi Suggests No object is imported into the namespace of rstan. 0 1
KernSmooth Suggests No object is imported into the namespace of rstan. 1 1
RUnit Suggests No object is imported into the namespace of rstan. 3 1
rstantools Suggests No object is imported into the namespace of rstan. 10 1
parallel Suggests No object is imported into the namespace of rstan. 0 0
Matrix Suggests No object is imported into the namespace of rstan. 7 0

Analysis was done with pkgndep.