title: Not sure how to use reactive values
body: <p>I am trying to put data that I download inside <code>observeEvent</code> into outside variable using <code>reactiveValues()</code> so I can use it outside <code>observeEvent</code>:</p>
  
  <pre><code>server &lt;- function(input, output, session) {
    rvalues &lt;- reactiveValues(dt = NULL)
  
    observeEvent(input$run, {
      alldata &lt;- data_request(as.numeric(input$text1))
      rvalues$dt &lt;- alldata
      })
  
    thedata &lt;- isolate(rvalues$dt)
    output$tableoutput &lt;- renderTable(thedata$scores)
  
  </code></pre>
  
  <p>But it does nothing... What am I doing wrong..?</p>