title: Scheduled Updates for Dataset in Shiny
body: <p>I'm making a dashboard where I have multiple charts pulling from a single data set, and I would like to refresh that data after a set amount of time. Here is what I have right now, which isn't working:</p>
  
  <pre><code>## server.R ##
  library(shiny)
  
   shinyServer(function(input, output) {
  
   sourceData &lt;- observe({
      invalidateLater(15000,NULL)
      runif(100, 0, 100)
      })
  
   output$reactiveHist &lt;- renderPlot({
      hist(sourceData)
    })  
  
  })
  </code></pre>
  
  <p>It seems pretty straight forward, after 15000 ms the observer should run again creating a new data set. However, it generates this error:</p>
  
  <pre><code>Error in hist.default(sourceData) : 'x' must be numeric
  </code></pre>
  
  <p>Any ideas?</p>