Dependency analysis on package lightgbm

General information

CRAN link link
Package version3.3.2
Number of strong dependencies11
Number of all dependencies41
Number of parent packages7
Max heaviness from parent packages5
Total heaviness from parent packages8
Number of parent packages (including Suggests and Enhances)8
Max co-heaviness from parent packages ("Matrix" and "graphics")1

Dependency heatmap

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

Adjust heatmap size:
Base packages Other packages Depends Imports Suggests methods graphics stats utils grDevices grid tools lattice brio callr cli crayon desc digest ellipsis evaluate jsonlite lifecycle magrittr pkgload praise processx ps R6 rlang waldo withr glue rprojroot rstudioapi diffobj fansi rematch2 tibble pillar pkgconfig vctrs utf8 0 2 4 6 8 Imported methods 0 10 20 30 Required packages 0 10 20 30 Heaviness from parents R6 graphics methods utils data.table jsonlite Matrix testthat In total 11 packages are required directly or indirectly (41) when installing 'lightgbm' (3.3.2) Depends Imports Suggests Base packages that are required Recommended packages that are required Contributed packages that are required Packages that are required for installing 'lightgbm' Imported functions


Dependency table

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

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

Parent package Field imports importMethods importClasses Required packages Heaviness from parent on lightgbm
R6 Depends 1 0 0 0 1
Matrix Imports 1 0 0 7 5
data.table Imports 8 0 0 1 1
jsonlite Imports 1 0 0 1 1
graphics Imports 2 0 0 0 0
methods Imports 1 0 0 0 0
utils Imports 2 0 0 0 0
testthat Suggests No object is imported into the namespace of lightgbm. 36 30

Analysis was done with pkgndep.