title: r Shiny:how to place downloadable PDF on app
body: <p>I have a PDF that I want to place on the shiny app for users to download. The PDF is in the www directory of my app and is called documentation.pdf.  I found this answer: <a href="https://stackoverflow.com/questions/40420450/how-to-download-a-pdf-file-in-a-shiny-app/40422604">How to download a PDF file in a Shiny app</a> and tried to use the answer but my PDF would not download.</p>
  <p>UI:</p>
  <pre><code>ui &lt;- fluidPage(
    downloadLink(&quot;downloadData&quot;, &quot;Download&quot;)
  )
  </code></pre>
  <p>Server:</p>
  <pre><code>server &lt;- function(input, output) {
  
    output$downloadData &lt;- downloadHandler(
      filename = &quot;documentation.pdf&quot;,
      content = function(file) {
        file.copy(&quot;www/documentation.pdf&quot;, file)
      }
    )
  } 
  </code></pre>