title: Shiny DataTable: Save full data.frame with buttons extension
body: <p>I am using DataTables with Shiny. With the buttons extension a user can download or print the data in the datatable. But only the visible part of the rows is downloaded/printed. I want to change that behaviour, so that the full data.frame with all rows can be downloaded. Is this possible with the buttons extension or do I have to switch to a downloadHandler?</p>
  
  <pre><code>library(DT)
  library(shiny)
  
  df &lt;- data.frame(a = 1:100, b = 1:100)
  
  ui &lt;- fluidPage(
    dataTableOutput("table")
  )
  
  server &lt;- function(input, output){
  
    output$table &lt;- DT::renderDataTable(df, 
                        extensions = c("Buttons"), 
                        options = list(dom = 'Bfrtip',
                                       buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
                        ))
  
  }
  
  shinyApp(ui, server)
  </code></pre>