Render standardized cancer registry reports using built-in Quarto templates provided by the package.
cr_render(
data,
template = "report",
title = "Cancer Registry Report",
author = "Henan Cancer Center",
registry = NULL,
output_format = "qcreport-typst",
ref_doc = "year-book.docx",
output_dir = "outputs",
subdir = NULL,
execute_dir = NULL,
timestamp = "%Y-%m-%d",
quiet = TRUE,
...
)
# S3 method for class 'canregs'
cr_render(
data,
template = "report",
title = "Cancer Registry Report",
author = "Henan Cancer Center",
registry = NULL,
output_format = "qcreport-typst",
ref_doc = "year-book.docx",
output_dir = "outputs",
subdir = NULL,
execute_dir = NULL,
timestamp = "%Y-%m-%d",
quiet = TRUE,
...
)
# S3 method for class 'canreg'
cr_render(
data,
template = "report",
title = "Cancer Registry Report",
author = "Henan Cancer Center",
registry = NULL,
output_format = "qcreport-typst",
ref_doc = "year-book.docx",
output_dir = "outputs",
subdir = NULL,
execute_dir = NULL,
timestamp = "%Y-%m-%d",
quiet = TRUE,
...
)An object of class canreg or canregs.
Character. Report template to use.
Character. Title of the report. Default is "Cancer Registry Report".
Character. Author name to display in the report.
Character. Name of the cancer registry (e.g., city or region).
Character. Output format for rendering.
Supported formats include: "html", "docx", and "typst"
Character. Path to a Word reference document (DOCX) for customizing Word output styles.
Character. Directory where the rendered report will
be saved. Default is "outputs".
Optional. Name of a sub-directory within output_dir.
If NULL, output is saved directly in output_dir.
The working directory in which to execute embedded code chunks.
Character. Format string for the timestamp in the output
directory name. Default is "%Y-%m-%d".
Logical. If TRUE, suppresses messages during rendering.
Additional arguments passed to quarto::quarto_render().
Invisibly returns the path to the rendered report file.