| PackageReport | R Documentation |
pkgnet compiles one or more package reporters into a package
report for a specified package. PackageReport is an R6 class that
holds all of those reporters and has a method render_report()
to generate an HTML report file. You can access each individual reporter
and modify it using its methods if you wish.
The function CreatePackageReport() is a shortcut for both
generating a PackageReport object with instantiated reporters
and creating the HTML report in one call.
Self, invisibly.
pkg_name(character string) name of package. Read-only.
pkg_path(character string) path to source code of the package. Read-only.
report_path(character string) path and filename of output report.
SummaryReporterInstantiated pkgnet SummaryReporter object
DependencyReporterInstantiated pkgnet DependencyReporter object
FunctionReporterInstantiated pkgnet FunctionReporter object
InheritanceReporterInstantiated pkgnet InheritanceReporter object
new()Initialize an instance of a package report object.
PackageReport$new( pkg_name, pkg_path = NULL, report_path = tempfile(pattern = pkg_name, fileext = ".html") )
pkg_name(character string) name of package
pkg_path(character string) optional directory path to source code of the package. It is used for calculating test coverage. It can be an absolute or relative path.
report_path(character string) The path and filename of the output report. Default report will be produced in the temporary directory.
Instantiated package report object.
add_reporter()Add a reporter to the package report.
PackageReport$add_reporter(reporter)
reporterInstantiated package reporter object
Self, invisibly
render_report()Render html pkgnet package report.
PackageReport$render_report()
clone()The objects of this class are cloneable with this method.
PackageReport$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.