Dependency analysis on package cowplot

General information

CRAN link link
Package version1.1.1
Number of strong dependencies38
Number of all dependencies106
Number of parent packages7
Max heaviness from parent packages20
Total heaviness from parent packages20
Number of parent packages (including Suggests and Enhances)24
Max co-heaviness from parent packages ("ggplot2" and "scales")12

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Imports Suggests utils grDevices methods graphics stats grid splines tools glue magrittr rlang R6 lifecycle crayon tibble ellipsis fansi pillar pkgconfig vctrs cli utf8 digest withr farver labeling munsell RColorBrewer viridisLite colorspace MASS lattice gtable isoband mgcv scales nlme Matrix evaluate jsonlite cpp11 yaml curl highr stringr xfun stringi generics tidyselect purrr htmltools base64enc fastmap brio callr desc pkgload praise processx ps waldo rprojroot rstudioapi diffobj rematch2 systemfonts textshaping Rcpp futile.logger lambda.r futile.options formatR e1071 class proxy rex httr lazyeval mime openssl askpass sys dplyr bslib jquerylib knitr tinytex sass fs rappdirs ggplot2 testthat xml2 0 1 2 3 Imported methods 0 20 40 Required packages 0 10 20 Heaviness from parents grid grDevices methods gtable rlang scales ggplot2 Cairo maps gridGraphics ragg lattice magick VennDiagram PASWR knitr forcats covr dplyr tidyr rmarkdown testthat patchwork vdiffr In total 38 packages are required directly or indirectly (106) when installing 'cowplot' (1.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 'cowplot' 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 cowplot.

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on cowplot
ggplot2 Imports 3 0 0 37 20
grid Imports 1 0 0 0 0
grDevices Imports Parent package is listed in Imports of cowplot but no object from parent package is imported. 0 0
methods Imports Parent package is listed in Imports of cowplot but no object from parent package is imported. 0 0
gtable Imports Parent package is listed in Imports of cowplot but no object from parent package is imported. 1 0
rlang Imports The whole set of functions/methods/classes from parent package is imported to the namespace of cowplot. 1 0
scales Imports Parent package is listed in Imports of cowplot but no object from parent package is imported. 15 0
vdiffr Suggests No object is imported into the namespace of cowplot. 42 22
rmarkdown Suggests No object is imported into the namespace of cowplot. 27 19
testthat Suggests No object is imported into the namespace of cowplot. 36 16
covr Suggests No object is imported into the namespace of cowplot. 20 12
knitr Suggests No object is imported into the namespace of cowplot. 12 8
tidyr Suggests No object is imported into the namespace of cowplot. 22 6
VennDiagram Suggests No object is imported into the namespace of cowplot. 7 5
ragg Suggests No object is imported into the namespace of cowplot. 3 4
PASWR Suggests No object is imported into the namespace of cowplot. 11 4
dplyr Suggests No object is imported into the namespace of cowplot. 20 4
magick Suggests No object is imported into the namespace of cowplot. 5 3
Cairo Suggests No object is imported into the namespace of cowplot. 2 1
maps Suggests No object is imported into the namespace of cowplot. 2 1
gridGraphics Suggests No object is imported into the namespace of cowplot. 3 1
forcats Suggests No object is imported into the namespace of cowplot. 16 1
patchwork Suggests No object is imported into the namespace of cowplot. 38 1
lattice Suggests No object is imported into the namespace of cowplot. 5 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 cowplot Co-heaviness as Jaccard coeffcient
scales ggplot2 12 0.375

Analysis was done with pkgndep.