Description Usage Arguments Value See Also Examples
Less simple, but we enable a floating table-of-contents,
code_folding
, syntax highlighting, insert some custom css,
then pass the rest of our arguments to
rmarkdown::html_document
1 2 3 |
toc |
TRUE to include a table of contents in the output |
toc_float |
TRUE to float the table of contents to the left of the main document content |
code_folding |
Enable document readers to toggle the
display of R code chunks. We change the default to |
self_contained |
Produce a standalone HTML file with no external dependencies... |
highlight |
Syntax highlighting style |
css |
One or more css files to include in addition to this format's css. |
lib_dir |
Directory to copy dependent HTML libraries (e.g. jquery, bootstrap, etc.) into... |
... |
other arguments passed to
|
R Markdown output format to pass to
rmarkdown::render
http://rmarkdown.rstudio.com/developer_custom_formats.html
1 2 3 4 | ## Not run:
rmarkdown::render("foo.Rmd", html_doc_5())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.