Dependency analysis on package spatialreg

General information

CRAN link link
Package version1.2-3
Number of strong dependencies37
Number of all dependencies117
Number of parent packages13
Max heaviness from parent packages3
Total heaviness from parent packages10
Number of parent packages (including Suggests and Enhances)23
Max co-heaviness from parent packages ("spdep" and "sf")12

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests stats utils graphics grDevices methods grid tools parallel splines lattice magrittr Rcpp MASS Matrix sp raster terra classInt DBI s2 units e1071 class KernSmooth wk proxy sf gdata gtools spData deldir boot yaml xfun glue zoo pkgconfig evaluate highr stringr stringi htmltools rlang digest base64enc fastmap jsonlite R6 dotCall64 RcppEigen bslib jquerylib knitr tinytex sass fs rappdirs tmaptools stars RColorBrewer viridisLite htmlwidgets widgetframe leaflet leafsync leafem abind lwgeom dichromat XML purrr crosstalk markdown png scales viridis leaflet.providers geojsonsf lazyeval mime farver labeling lifecycle munsell ggplot2 gridExtra geometries jsonify rapidjsonr sfheaders colorspace gtable isoband mgcv tibble withr nlme ellipsis fansi pillar vctrs cli crayon utf8 0 5 10 Imported methods 0 20 40 60 80 Required packages 0 20 40 60 Heaviness from parents Matrix spData sf methods splines LearnBayes boot MASS coda nlme expm gmodels spdep parallel foreign spam lmtest sandwich RSpectra igraph knitr rmarkdown tmap In total 37 packages are required directly or indirectly (117) when installing 'spatialreg' (1.2-3) Depends Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'spatialreg' Imported functions The whole namespace is imported The whole namespace is imported except some functions


Dependency table

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

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on spatialreg
Matrix Depends The whole set of functions/methods/classes from parent package excluding 1 objects is imported to the namespace of spatialreg. 7 0
spData Depends The whole set of functions/methods/classes from parent package is imported to the namespace of spatialreg. 11 0
sf Depends The whole set of functions/methods/classes from parent package is imported to the namespace of spatialreg. 19 0
gmodels Imports 1 0 0 8 3
spdep Imports 14 0 0 27 2
splines Imports 1 0 0 0 1
LearnBayes Imports 1 0 0 0 1
coda Imports 2 0 0 6 1
nlme Imports 1 0 0 6 1
expm Imports 2 0 0 8 1
methods Imports 4 0 0 0 0
boot Imports 1 0 0 2 0
MASS Imports 1 0 0 5 0
tmap Suggests No object is imported into the namespace of spatialreg. 85 59
rmarkdown Suggests No object is imported into the namespace of spatialreg. 27 22
knitr Suggests No object is imported into the namespace of spatialreg. 12 8
spam Suggests No object is imported into the namespace of spatialreg. 3 2
lmtest Suggests No object is imported into the namespace of spatialreg. 7 2
sandwich Suggests No object is imported into the namespace of spatialreg. 7 2
RSpectra Suggests No object is imported into the namespace of spatialreg. 10 2
igraph Suggests No object is imported into the namespace of spatialreg. 10 2
parallel Suggests No object is imported into the namespace of spatialreg. 0 1
foreign Suggests No object is imported into the namespace of spatialreg. 3 1

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 spatialreg Co-heaviness as Jaccard coeffcient
sf spdep 12 0.857

Analysis was done with pkgndep.