render_report: Render an earth model report

View source: R/export_report.R

render_reportR Documentation

Render an earth model report

Description

Renders a parameterized 'Quarto' report from the fitted 'earth' model results. Requires the 'quarto' R package and a 'Quarto' installation.

Usage

render_report(
  earth_result,
  output_format = "html",
  output_file = NULL,
  paper_size = "letter"
)

Arguments

earth_result

An object of class "earthUI_result" as returned by fit_earth().

output_format

Character. Output format: "html", "pdf", or "docx". Default is "html".

output_file

Character. Path for the output file. If NULL, a temporary file is created.

paper_size

Character. Paper size for PDF output: "letter" (US) or "a4" (European). Default is "letter". Ignored for HTML/Word.

Value

The path to the rendered output file (invisibly).

Examples


result <- fit_earth(mtcars, "mpg", c("cyl", "disp", "hp", "wt"))
render_report(result, output_format = "html",
              output_file = tempfile(fileext = ".html"))


earthUI documentation built on March 26, 2026, 1:07 a.m.