| export_report | R Documentation |
Knits the packaged R Markdown template with whatever project artefacts are supplied and returns the path to the rendered HTML file. Open it in a browser to view; use the browser's Print > Save as PDF to archive as PDF (this avoids the LaTeX install that a direct PDF backend would need).
export_report(
output_file = NULL,
project = NULL,
ranked = NULL,
plan = NULL,
decisions = NULL,
criteria = NULL,
ensemble = NULL
)
output_file |
Path to write the HTML report to. Defaults to a
file in |
project |
Optional project name (for the report header). |
ranked |
Optional ranked corpus tibble. |
plan |
Optional |
decisions |
Optional tibble of human decisions. |
criteria |
Optional |
ensemble |
Optional |
All artefact arguments default to NULL; the template
fills in "(not recorded)" for anything missing, so the same call
works whether the reviewer is midway through screening or fully
finished.
Invisibly, the path to the rendered HTML file.
# Render a minimal report to a temporary HTML file.
ranked <- data.frame(
id = "r1", title = "Example study", abstract = "A short abstract.",
universal_best_score = 80, rank = 1
)
out <- tempfile(fileext = ".html")
export_report(output_file = out, ranked = ranked)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.