Learn R Programming

leakr (version 0.1.0)

compile_report: Enhanced report compilation with numeric severity scores

Description

This function compiles a report with enhanced sorting, severity scoring, and detailed metadata, including configuration information.

Usage

compile_report(
  results,
  audit_data,
  config,
  show_config = FALSE,
  top_n = 10,
  report = "default"
)

Value

A leakr_report object containing the summary, evidence, and metadata for the report.

Arguments

results

A list containing detection results.

audit_data

The audit data used for the report.

config

Configuration settings, including whether to use numeric severity scores.

show_config

Logical, whether to display the configuration used for report generation. Defaults to FALSE.

top_n

Numeric, the number of top results to display in the report. Defaults to 10.

report

A string indicating the type of report to generate. Defaults to "default".