RMarkdown allows you to turn subsections into tabs by putting {.tabset}
behind the title of the parent section. With this code you can write
{.tabset .tabset-dropdown}
to get a dropdown menus instead of tabs.
1 2 3 |
To use this, either create a chunk (with results = "asis"
) that calls
insert_dropdown_html
, or put the value of insert_dropdown_location()
as
after_body
include in the RMarkdown.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.