DependencyReporter | R Documentation |
This reporter looks at the recursive network of its dependencies on other packages. This allows a developer to understand how individual dependencies might lead to a much larger set of dependencies, potentially informing decisions on including or removing them.
pkgnet::AbstractPackageReporter
-> pkgnet::AbstractGraphReporter
-> DependencyReporter
report_markdown_path
(character string) path to R Markdown template for this reporter. Read-only.
new()
Initialize an instance of the reporter.
DependencyReporter$new( dep_types = c("Imports", "Depends", "LinkingTo"), installed = TRUE )
dep_types
(character vector) The sections within the DESCRIPTION
file to be counted as dependencies.
By default, c("Imports", "Depends", "LinkingTo") is chosen.
installed
(logical) If TRUE
, consider only installed packages when building dependency network.
Self, invisibly.
\donttest{ # Instantiate an object reporter <- DependencyReporter$new() # Seed it with a package reporter$set_package("ggplot2") }
clone()
The objects of this class are cloneable with this method.
DependencyReporter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Network Reporters:
FunctionReporter
,
InheritanceReporter
Other Package Reporters:
FunctionReporter
,
InheritanceReporter
,
SummaryReporter
## ------------------------------------------------
## Method `DependencyReporter$new`
## ------------------------------------------------
# Instantiate an object
reporter <- DependencyReporter$new()
# Seed it with a package
reporter$set_package("ggplot2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.