title: How to use a reactive table output from Shiny in a Rmarkdown document?
body: <p>I've got a Shiny application which allow to download a Rmarkdown word document but I don't know how to setup the table in this Rmarkdown.</p>
  
  <p>Ui.R</p>
  
  <pre><code>mainPanel(
    tabsetPanel(
      tabPanel(
        title = "Résultat",
        br(),
        tableOutput(
          outputId = "tab"
        ),
        downloadButton(
          outputId = "downloadtable",
          label = "Export this table"
        ),
        radioButtons('format', 'Document format', c('PDF', 'HTML', 'Word'),
                     inline = TRUE),
        downloadButton(
          outputId = "downloadReport",
          label = "Download"
        )
      )
    )
  )
  </code></pre>
  
  <p>Server.R</p>
  
  <pre><code>resu &lt;- reactive({...
  })
  
  # Table of selected dataset
    output$tab &lt;- renderTable({
    resu()
  })
  </code></pre>
  
  <p>Report.rmd</p>
  
  <pre><code>---
  title: "Title"
  author: "Aleksik"
  date: "`r format(Sys.time(), '%d %B, %Y')`"
  output: pdf_document
  classoption: landscape
  ---
  
  ## Resultat
  
  ```{r, echo=FALSE }
  resu()
  ```
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>##   Variable  IC 95% - IC 95% +
  ## 1 A            24.184   23.190   26.899
  ## 2 B           21.472   20.429   22.703
  ## 3 C             2.712    2.355    5.068
  ## 4 D            7.065    5.990   16.061
  </code></pre>
  
  <p>I would like to get a nice table without "##" for example.</p>
  
  <p>Furthermore, option 'landscape' of my Rmarkdown document doesn't work and I don't know why.</p>
  
  <p>Many thanks</p>