insert_dropdown_html: Insert the Necessary Code to Turn Tabs into Dropdowns

Description Usage Details

Description

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.

Usage

1
2
3

Details

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
---
title: Dropdowns
output: html_document
---

# Header1 {.tabset .tabset-dropdown}

## Dropdown Entry 1
...

## Dropdown Entry 2
...

```{r, results = 'asis', echo = FALSE}
statupinternal::insert_dropdown_html()
```

STAT-UP/statupinternal documentation built on May 9, 2019, 11:43 a.m.