Dependency analysis on package harrypotter

General information

CRAN link link
Package version2.1.1
Number of strong dependencies39
Number of all dependencies56
Number of parent packages2
Max heaviness from parent packages33
Total heaviness from parent packages34
Number of parent packages (including Suggests and Enhances)4
Max co-heaviness from parent packages ("ggplot2" and "gridExtra")5

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Imports Suggests grDevices utils graphics grid stats methods splines tools gtable digest glue rlang tibble withr lifecycle R6 ellipsis fansi magrittr pillar pkgconfig vctrs lattice cli crayon utf8 isoband MASS mgcv scales nlme Matrix farver labeling munsell RColorBrewer viridisLite colorspace brio callr desc evaluate jsonlite pkgload praise processx ps waldo rprojroot rstudioapi diffobj rematch2 0 0.5 1 Imported methods 0 10 20 30 Required packages 0 10 20 30 Heaviness from parents gridExtra ggplot2 hexbin testthat In total 39 packages are required directly or indirectly (56) when installing 'harrypotter' (2.1.1) Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'harrypotter' The whole namespace is imported


Dependency table

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

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on harrypotter
ggplot2 Imports The whole set of functions/methods/classes from parent package is imported to the namespace of harrypotter. 37 33
gridExtra Imports The whole set of functions/methods/classes from parent package is imported to the namespace of harrypotter. 5 1
testthat Suggests No object is imported into the namespace of harrypotter. 36 16
hexbin Suggests No object is imported into the namespace of harrypotter. 7 1

Analysis was done with pkgndep.