eventsurvey_report() turns one fitted eventsurvey() or
eventsurvey_summary() object, or a named list of fitted objects, into a
self-contained HTML report. Each analysis retains its own estimates,
diagnostics, settings, and figures.
Usage
eventsurvey_report(
x,
file = NULL,
open = interactive(),
overwrite = FALSE,
title = "Event Survey Report"
)Arguments
- x
An object of class
eventsurvey, or a non-empty list of such objects. Names identify analyses in a multi-analysis report; missing names are replaced with"Analysis 1","Analysis 2", and so on.- file
Optional output path. When
NULL, the report is written to a temporary file. A.htmlextension is added when none is supplied.- open
Whether to open the completed report automatically. The default,
interactive(), evaluates toTRUEwhen the function is called from an interactive session such as the RStudio console, and normally evaluates toFALSEinRscript, tests, continuous integration, and other batch runs. The HTML file is created either way.- overwrite
Whether an existing output file may be replaced.
- title
Report title. Defaults to
"Event Survey Report".
Examples
if (requireNamespace("rmarkdown", quietly = TRUE) &&
rmarkdown::pandoc_available()) {
report_file <- eventsurvey(y ~ day, sample_data) |>
eventsurvey_report(open = FALSE)
}