heaviness_on_downstream: Heaviness on all downstream packages

Description Usage Arguments Value Examples

View source: R/stat.R

Description

Heaviness on all downstream packages

Usage

1
heaviness_on_downstream(package, move_to_suggests = TRUE, add_values_attr = FALSE)

Arguments

package

A package name.

move_to_suggests

Whether to move an Imports packages to Suggests or move a Suggesets package to Imports?

add_values_attr

Whether to include "values" attribute? Internally used.

Value

The value is the mean heaviness of the package on all its downstream packages. Denote n as the number of all its downstream packages, k_i as the number of required packages for package i (i.e. total packages loaded when only loading packages in Depends, Imports and LinkingTo), v_1 is the sum of required packages: v_1 = sum_i^n{k_i}. Denote p_i as the number of required packages if moving package to Suggestss, and v_2 as the sum of required packages: v_1 = sum_i^n{p_i}. The final heaviniss on downstream packages is (v_1 - v_2)/n.

Examples

1
2
3
4
## Not run: 
heaviness_on_downstream("ComplexHeatmap")

## End(Not run)

pkgndep documentation built on Nov. 10, 2021, 5:08 p.m.