| report_render | R Documentation |
Turn the results of an artma() run into a single self-contained HTML file:
a metadata header, a table of contents, and one section per method with its
tables and plots. The file has no external dependencies (all styling is
inline and every plot is embedded as a base64 PNG), so it can be shared on
its own.
The report can also be produced automatically at the end of every run by
setting the output.report option to TRUE.
report_render(results, output_file = NULL, open = interactive())
results |
[list] The named list returned by |
output_file |
[character, optional] Absolute path of the HTML file to
write. When |
open |
[logical, optional] Whether to open the report in a browser
after writing it. Only ever honoured in an interactive session. Defaults to
|
Plots come from the run.json manifest a run leaves in its output directory:
it records which files each method wrote, so the report embeds exactly those.
A results directory without a manifest (written before manifests existed, or
by a run with output.save_results off) yields a report with tables only.
[character] The path of the written report file (invisibly).
## Not run:
res <- artma(methods = c("funnel_plot", "effect_summary_stats"), options = "my.yaml")
report_render(res)
# Write to a specific location and open it
report_render(res, output_file = "~/analysis/report.html", open = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.