pkgndep

Dependency heaviness analysis on R packages.

Basic

Example

library(pkgndep)
x = pkgndep("circlize")
## retrieve package database from CRAN/Bioconductor (3.19)...
##   - 26042 remote packages on CRAN/Bioconductor.
##   - 485 packages installed locally.
## prepare dependency table...
## prepare reverse dependency table...
x
## 'circlize', version 0.4.16
## - 9 packages are required for installing 'circlize'.
## - 94 packages are required if installing packages listed in all fields in DESCRIPTION.
heaviness(x)
##       graphics      grDevices          utils           grid          stats 
##              0              0              0              1              0 
##          shape        methods  GlobalOptions     colorspace            png 
##              1              0              1              1              1 
##         bezier       gridBase       markdown          knitr           covr 
##              1              1              4              6             16 
## ComplexHeatmap      rmarkdown     dendextend 
##             22             27             32
plot(x, fix = FALSE)