dstr: Dependency Summary (Console Output)

Description Usage Arguments Examples

View source: R/dstr.R

Description

This function gives a summary of the dependency structure of a given package and points out opportunities to eliminate depdendencies completely. The default assumption is that there is an R package in the current working directory and that the dependencies to be analyzed are given in the DESCRIPTION file. Use the parameters <e2><80><98>githublink<e2><80><99> and/or 'pkg' to alter the package/s to be analyzed.

Usage

1
dstr(githublink = NULL, pkg = NULL, includebasepkgs = F)

Arguments

githublink

A link to a github repository of an R package.

pkg

Character vector of CRAN package name/s you want to see the dependencies of. In the case that githublink is also set, the github package is considered as the root package and the packages provided by the pkg parameter are considered to be first level packages, e.g. on the same level as the packages in the DESCRIPTION file of the github package. This is to help answer the question "How would the dependency structure change if the package on github would also depend on a few more packages (provided by the pkg parameter)?".

includebasepkgs

Whether to include base packages in the analysis.

Examples

1
2
dstr(githublink = "tidyverse/ggplot2",
     pkg = c("astro", "celestial"), includebasepkgs = TRUE)

falo0/dstr documentation built on May 25, 2019, 4:26 p.m.