insert_yaml | R Documentation |
Inserts YAML header for floating toc if toc is TRUE.
insert_yaml(toc, header, text, lan, theme = "default", highlight = "null")
toc |
TOC status, FALSE (the default) or TRUE. |
header |
Metadata items wrapped with 'tags$header()'. |
text |
Raw text required for Rmarkdown body. |
lan |
lang attribute value. |
theme |
Text styling to apply. Current valid value is "default" only. All other themes present accessibility errors on testing. |
highlight |
Currently only "null" is a valid, due to accessibility errors found in all built-in highlight options. |
An assembled html output page containing the required toc code.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.