title: How to put R Markdown chunks in different HTML-tabs?
body: <p>I have an R markdown page with a lot of chunks. Is it possible to render an HTML-page in which the chunks appear in different tabs?</p>
  
  <p>As an example I use this .Rmd file:</p>
  
  <pre><code>---
  title: "Example"
  output: html_document
  ---
  
  # Tab 1
  
  ```{r}
  summary(cars)
  ```
  
  # Tab 2
  
  ```{r, echo=FALSE}
  plot(cars)
  ```
  </code></pre>
  
  <p>Now I want to render an HTML-page with the content of the two chunks in two different tabs. How can I do that?</p>
  
  <p>This is how it basically has to look like.</p>
  
  <p><a href="https://i.stack.imgur.com/mQ47g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQ47g.png" alt="enter image description here"></a></p>