title: R Shiny: eventReactive with two controls
body: <p>I have the following R Shiny code:</p>
  
  <pre><code>  economics_points &lt;- eventReactive(input$sigmaThresholdSlider, {
      print("input$sigmaThresholdSlider fired.")
      get_points(input$daterange, 1, input$sigmaThresholdSlider)
    }, ignoreNULL = FALSE)
    economics_points &lt;- eventReactive(input$daterange, {
      print("input$daterange fired.")
      get_points(input$daterange, 1, input$sigmaThresholdSlider)
    }, ignoreNULL = FALSE)
  </code></pre>
  
  <p>The problem is that <code>economics_points</code> is only updated when the <code>daterange</code> control is changed, not when the <code>sigmaThresholdSlider</code> control is changed.  If I reverse the order of the two statements, <code>economics_points</code> is only updated when <code>sigmaThresholdSlider</code> is moved.  In other words, the second statement overrides the first.</p>
  
  <p>How do I change this code so that it runs when <em>either</em> control is adjusted?</p>
  
  <p>The <a href="http://shiny.rstudio.com/reference/shiny/latest/observeEvent.html" rel="nofollow">documentation</a> says that the <code>eventExpr</code> argument of <code>eventReactive</code> can be "even a complex expression inside curly braces", but no helpful examples are given.</p>