Dependency analysis on package pec

General information

CRAN link link
Package version2022.05.04
Number of strong dependencies105
Number of all dependencies135
Number of parent packages7
Max heaviness from parent packages10
Total heaviness from parent packages10
Number of parent packages (including Suggests and Enhances)13
Max co-heaviness from parent packages ("riskRegression" and "rms")66

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests Enhances stats grDevices graphics utils methods splines grid tools parallel compiler stats4 Matrix lattice survival digest codetools MASS future.apply progressr numDeriv SQUAREM future globals listenv parallelly ggplot2 nlme htmltools gtable gridExtra viridis base64enc glue isoband mgcv rlang scales tibble withr stringr magrittr htmlwidgets rstudioapi fastmap RColorBrewer viridisLite farver labeling lifecycle munsell R6 ellipsis fansi pillar pkgconfig vctrs stringi yaml jsonlite colorspace cli crayon utf8 lava rpart multcomp htmlTable cluster Formula latticeExtra nnet foreign data.table mvtnorm TH.data sandwich knitr checkmate png jpeg zoo evaluate highr xfun backports Rcpp KernSmooth iterators Hmisc SparseM quantreg polspline MatrixModels cmprsk doParallel foreach mets plotrix prodlim Publish ranger rms timereg RcppArmadillo RcppEigen modeltools strucchange coin libcoin matrixStats data.tree DiagrammeR dplyr downloader igraph influenceR purrr readr tidyr visNetwork generics tidyselect clipr hms vroom cpp11 tzdb bit64 progress bit prettyunits 0 0.5 1 Imported methods 0 50 100 Required packages 0 10 20 Heaviness from parents prodlim foreach survival lava timereg rms riskRegression rpart cmprsk party Hmisc crrstep randomForestSRC In total 105 packages are required directly or indirectly (135) when installing 'pec' (2022.05.04) Depends Imports Suggests Enhances Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'pec' Imported functions Package is listed in 'Imports' but namespace is not imported


Dependency table

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

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on pec
prodlim Depends 1 0 0 25 0
riskRegression Imports Parent package is listed in Imports of pec but no object from parent package is imported. 104 10
foreach Imports 1 0 0 3 0
survival Imports 1 0 0 9 0
lava Imports Parent package is listed in Imports of pec but no object from parent package is imported. 22 0
timereg Imports 1 0 0 23 0
rms Imports Parent package is listed in Imports of pec but no object from parent package is imported. 78 0
party Suggests No object is imported into the namespace of pec. 24 7
rpart Suggests No object is imported into the namespace of pec. 3 0
cmprsk Suggests No object is imported into the namespace of pec. 10 0
Hmisc Suggests No object is imported into the namespace of pec. 67 0
randomForestSRC Enhances No object is imported into the namespace of pec. 72 22
crrstep Enhances No object is imported into the namespace of pec. 11 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 pec Co-heaviness as Jaccard coeffcient
rms riskRegression 66 0.868

Analysis was done with pkgndep.