Dependency analysis on package htmlwidgets

General information

CRAN link link
Package version1.5.4
Number of strong dependencies10
Number of all dependencies64
Number of parent packages4
Max heaviness from parent packages6
Total heaviness from parent packages9
Number of parent packages (including Suggests and Enhances)8
Max co-heaviness from parent packages ("htmltools" and "grDevices")1

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Imports Suggests Enhances methods utils grDevices tools stats graphics digest rlang base64enc fastmap glue magrittr evaluate jsonlite R6 highr stringr yaml xfun stringi bslib htmltools jquerylib sass fs rappdirs crayon ellipsis lifecycle withr knitr tinytex brio callr cli desc pkgload praise processx ps waldo rprojroot rstudioapi diffobj fansi rematch2 tibble pillar pkgconfig vctrs utf8 httpuv mime xtable fontawesome sourcetools later promises commonmark cachem Rcpp 0 0.5 1 Imported methods 0 10 20 30 Required packages 0 10 20 30 Heaviness from parents grDevices yaml jsonlite htmltools knitr rmarkdown testthat shiny In total 10 packages are required directly or indirectly (64) when installing 'htmlwidgets' (1.5.4) Imports Suggests Enhances Base packages that are required Contributed packages that are required Packages that are required for installing 'htmlwidgets' 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 htmlwidgets.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on htmlwidgets
htmltools Imports The whole set of functions/methods/classes from parent package is imported to the namespace of htmlwidgets. 6 6
jsonlite Imports Parent package is listed in Imports of htmlwidgets but no object from parent package is imported. 1 2
yaml Imports Parent package is listed in Imports of htmlwidgets but no object from parent package is imported. 0 1
grDevices Imports Parent package is listed in Imports of htmlwidgets but no object from parent package is imported. 0 0
testthat Suggests No object is imported into the namespace of htmlwidgets. 36 31
rmarkdown Suggests No object is imported into the namespace of htmlwidgets. 27 18
knitr Suggests No object is imported into the namespace of htmlwidgets. 12 10
shiny Enhances No object is imported into the namespace of htmlwidgets. 34 26

Analysis was done with pkgndep.