pkgCombDependencyGain: Calculate dependency gain achieved by excluding combinations...

Description Usage Arguments Value Author(s) Examples

View source: R/pkgDependencyMetrics.R

Description

Calculate dependency gain achieved by excluding combinations of packages

Usage

1
pkgCombDependencyGain(pkg, depdf, maxNbr = 3L)

Arguments

pkg

character, the name of the package for which we want to estimate the dependency gain

depdf

a tidy data frame with package dependency information obtained through the function buildPkgDependencyDataFrame

maxNbr

numeric, the maximal number of direct dependencies to leave out simultaneously

Value

A data frame with three columns: ExclPackages (the excluded direct dependencies), NbrExcl (the number of excluded direct dependencies), DepGain (the dependency gain from excluding these direct dependencies)

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
depdf <- buildPkgDependencyDataFrame(
  dependencies=c("Depends", "Imports"), 
  repo=c("BioCsoft", "CRAN")
)
pcd <- pkgCombDependencyGain('GEOquery', depdf, maxNbr = 3L)
head(pcd[order(pcd$DepGain, decreasing = TRUE), ])

BiocPkgTools documentation built on April 15, 2021, 6:01 p.m.