Description Usage Arguments Value
These are simple wrappers of the output format functions like rmarkdown::html_document(), and they added the capability of numbering figures/tables/equations/theorems and cross-referencing them. See References for the syntax. Note you can also cross-reference sections by their ID's using the same syntax when sections are numbered. In case you want to enable cross reference in other formats, use markdown_document2 with base_format argument.
1 2 3 4 5 6 7 8 9 10 11 | html_report(
toc_depth = 3,
fig_width = 6.3,
fig_height = 4.7,
number_sections = TRUE,
self_contained = TRUE,
mathjax = "default",
df_print = "kable",
code_download = TRUE,
...
)
|
toc_depth |
Depth of headers to include in table of contents |
fig_width |
Default width (in inches) for figures |
fig_height |
Default height (in inches) for figures |
number_sections |
|
self_contained |
Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of its size). |
mathjax |
Include mathjax. The "default" option uses an https URL from a
MathJax CDN. The "local" option uses a local version of MathJax (which is
copied into the output directory). You can pass an alternate URL or pass
|
df_print |
Method to be used for printing data frames. Valid values
include "default", "kable", "tibble", and "paged". The "default" method
uses a corresponding S3 method of |
code_download |
Embed the Rmd source code within the document and provide a link that can be used by readers to download the code. |
... |
Arguments to be passed to a specific output format function |
R Markdown output format to pass to render
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.