.getDepGain {BiocPkgTools} | R Documentation

## Calculate the 'dependency gain' from excluding one or more direct dependencies

### Description

Calculate the difference between the total number of dependencies of a package and the number of dependencies that would remain if one or more of the direct dependencies were removed.

### Usage

    .getDepGain(g, pkg, depsToRemove)

### Arguments

`g` | Package dependency graph
`pkg` | Character string representing the package of interest
`depsToRemove` | Character vector representing the dependencies to remove

### Value

The 'dependency gain' that would be achieved by excluding the indicated direct dependencies

### Author(s)

Charlotte Soneson

[Package BiocPkgTools version 1.8.2 Index]