View source: R/generate_report2.R
generate_report2 | R Documentation |
This is a support function that accepts parameters and creates a HTML
document based on an RMarkdown template. This is an alternative to
generate_report()
which instead creates an RMarkdown document from scratch
using individual code chunks.
generate_report2(
output_format = rmarkdown::html_document(toc = TRUE, toc_depth = 6, theme = "cosmo"),
output_file = "report.html",
output_dir = getwd(),
report_title = "Report",
rmd_dir = system.file("rmd_template/minimal.rmd", package = "vivainsights"),
...
)
output_format |
output format in |
output_file |
output file name in |
output_dir |
output directory for report in |
report_title |
report title. Default is |
rmd_dir |
string specifying the path to the directory containing the RMarkdown template files. |
... |
other arguments to be passed to |
The implementation of this function was inspired by the 'DataExplorer' package by boxuancui, with credits due to the original author.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.