title: Use multiple R Markdown files in Shiny tabs
body: <p>I am building a Shiny App and I'd like to have multiple tabsets.  The code I've got so far gives me that:</p>
  
  <pre><code>shinyUI(navbarPage("OEI Grant",
    tabPanel("Part 1 - Organization",
             tabsetPanel("1.x",
                         tabPanel("1.1"),
                         tabPanel("1.2"),
                         tabPanel("1.3")
                         ))))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/jh4f4.png" alt="Current Layout"></p>
  
  <p>The part I cannot figure out is how to get a separate interactive document (R markdown .Rmd file) for each tab (1.1, 1.2, etc.).</p>
  
  <p>I am looking for the equivalent of the <code>includeMarkdown()</code> function but for R Markdown files that themselves contain Shiny Apps.</p>
  
  <p>For example in 1.1 I may want to display the output from the following simple .Rmd file:</p>
  
  <pre><code>---
  runtime: shiny
  ---
  # Data visualization
  
  Example visualization
  
  ```{r read-in-data, echo = FALSE, eval=TRUE, message=TRUE}
  library(ggplot2)
  data(OrchardSprays) # Use this data                                                                                                                                                                            
  head(OrchardSprays)
  ```
  
  ## Histogram
  
  We can also look at this data in an interactive histogram.
  
  ```{r histogram, echo = FALSE, eval=TRUE}
  shinyAppDir(
      "histogram/",
      options=list(width="100%", height=450)
    )
  ```
  </code></pre>
  
  <p><a href="https://skranz.shinyapps.io/RTutorTopIncomeTaxation/" rel="nofollow noreferrer">This RTutor Shiny App</a> is something similar to what I'm trying to do as far as multiple tabs but from looking at their code, I think everything is provided in one R markdown file and somehow parsed into different sections.</p>
  
  <p>R Markdown documentation talks about <a href="http://rmarkdown.rstudio.com/authoring_shiny_advanced.html#multiple-pages" rel="nofollow noreferrer">linking multiple pages</a> but I want the content and not links.</p>
  
  <p>The only <a href="http://shiny.rstudio.com/gallery/tabsets.html" rel="nofollow noreferrer">example in the Gallery for Tabsets</a> shows how to put output from server.R into different tabs but not separate R Markdown files.</p>
  
  <p>Any ideas on how to do this?</p>