PackageReport: Package Report

Description Class Constructor Public Methods Public Fields Special Methods

Description

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.

Class Constructor

1
2
DependencyReporter$new(pkg_name, pkg_path = NULL, report_path =
   tempfile(pattern = pkg_name, fileext = ".html"))

Public Methods

add_reporter(reporter)
  • Add a reporter to the package report.

  • Args:

    reporter: Instantiated package reporter object

  • Returns:

    • Self, invisibly.

render_report()
  • Render html pkgnet package report.

  • Returns:

    • Self, invisibly.

Public Fields

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.

SummaryReporter

instantiated pkgnet SummaryReporter object

DependencyReporter

instantiated pkgnet DependencyReporter object

FunctionReporter

instantiated pkgnet FunctionReporter object

InheritanceReporter

instantiated pkgnet InheritanceReporter object

Special Methods

clone(deep = FALSE)
  • Method for copying an object. See Advanced R for the intricacies of R6 reference semantics.

  • Args:

    • deep(logical) Whether to recursively clone nested R6 objects.

  • Returns:

    • Cloned object of this class.


pkgnet documentation built on Dec. 23, 2021, 9:07 a.m.