title: How to download a PDF file in a Shiny app
body: <p>I have one PDF in the www directory of my shiny app. I would like that file to be available for download. How can i do that.</p>
  
  <p>The download example works well, but no idea to use it for PDF download from www directory.</p>
  
  <pre><code>## Only run examples in interactive R sessions
  if (interactive()) {
  
  ui &lt;- fluidPage(
    downloadLink("downloadData", "Download")
  )
  
  server &lt;- function(input, output) {
    # Our dataset
    data &lt;- mtcars
  
    output$downloadData &lt;- downloadHandler(
      filename = function() {
        paste("data-", Sys.Date(), ".csv", sep="")
      },
      content = function(file) {
        write.csv(data, file)
      }
    )
  }
  
  shinyApp(ui, server)
  }
  </code></pre>