title: Using a downloaded/external file in Shiny App
body: <p>I'm trying to create a shiny app that uses information that's available externally in a google spreadsheet, which I'm downloading to a temporary .csv file. The app works correctly on my local machine, but when I try to push it to <a href="http://shinyapps.io" rel="nofollow">shinyapps.io</a> the app fails. I've attempted to recreate the error below using a simply example. The shiny app can be found here: <a href="https://n8sty.shinyapps.io/test/" rel="nofollow">https://n8sty.shinyapps.io/test/</a>. I've copied the server.R and ui.R files that work locally below.</p>
  
  <p>I believe the issue is that the server doesn't handle downloading the external google sheet file in the same manner as my local machine. Does anyone know how to use google docs in a shiny app?</p>
  
  <h2>ui.r</h2>
  
  <pre><code>require(shiny)
  
  shinyUI(fluidPage(
  
    mainPanel(
      tableOutput("table")
      )
  
    ))
  </code></pre>
  
  <h2>server.r</h2>
  
  <pre><code>require(shiny)
  
  td &lt;- tempdir()
  tf &lt;- tempfile(pattern = 'test', tmpdir = td, fileext = '.csv')
  url &lt;- 'https://docs.google.com/spreadsheets/d/1c1ZI0P0ydunm-wc1eb3-jYbWfwMZQc4eAyWlHJut2wY/export?usp=sharing&amp;format=csv'
  download.file(url, tf, method = 'auto', quiet = TRUE)
  df &lt;- read.csv(tf)
  
  shinyServer(function(input, output) {
  
    output$table &lt;- renderTable({
      df
      })
  
  })
  </code></pre>
  
  <p>Thanks</p>