Skip to contents

Convenience exporters for synthesis_report objects. These helpers create manuscript-ready report text in markdown, HTML, or DOCX format.

Usage

as_markdown(x, ...)

# S3 method for class 'synthesis_report'
as_markdown(x, file = NULL, digits = 3, ...)

as_html(x, ...)

# S3 method for class 'synthesis_report'
as_html(x, file = NULL, digits = 3, ...)

as_docx(x, ...)

# S3 method for class 'synthesis_report'
as_docx(x, file, digits = 3, ...)

Arguments

x

A synthesis_report object.

...

Additional arguments reserved for future methods.

file

Output DOCX file path. This argument is required for Word export.

digits

Number of digits used in rendered numeric tables.

Examples

if (FALSE) { # \dontrun{
report <- synthesis_factor_report(fit, factor_method = "none")
markdown <- as_markdown(report)
html <- as_html(report)
as_docx(report, file = tempfile(fileext = ".docx"))
} # }