Renders an assembled report through an R Markdown template. The
bundled template covers experimental setup, the QC log, an intensity
overview, the comparison summary and a session-info appendix. A
custom template receives the report through its params; only the
parameters a template declares are passed, so templates of different
vintages keep working.
Arguments
- report
A
cr_reportfromcr_report(). Acr_experimentis also accepted and is assembled into a report first.- output_dir
Output directory (default
tempdir()).- format
One of
"html","pdf"or"docx".- template
Path to an R Markdown template. If
NULL, the bundled template is used.Override the report title and author.
NULLkeeps the values stored in the report.- quiet
Passed to
rmarkdown::render().
See also
Other reporting:
cr_export_plots(),
cr_export_results(),
cr_export_tables(),
cr_report(),
cr_table_qc(),
cr_tables()
Examples
# \donttest{
exp <- cr_example_experiment(seed = 1, n_cells_per_well = 10)
rep <- cr_report(exp)
if (requireNamespace("rmarkdown", quietly = TRUE) &&
requireNamespace("knitr", quietly = TRUE) &&
rmarkdown::pandoc_available()) {
out <- cr_render_report(rep, output_dir = tempdir())
basename(out)
}
#> [1] "cellreportR_report.html"
# }