Reactive Function Parameters
<p>My goal is to make a reactive shiny function in R. There are multiple outputs (e.g. tables) which can be bind to a similar function. However I need the function to react on some parameter, specific to one table. Here is some simple sample code, which isn't working but it makes my idea clear - I hope:</p>

<pre><code>output$tableOne &lt;- DT::renderDataTable({
  getData(foo)
})

getData &lt;- reactive(function(funParameter){
  corrStartDate &lt;- input$StartDate
  corrEndDate &lt;- input$EndDate

  return(someData(corrStartDate, corrEndDate, funParameter))
})
</code></pre>

<p>In all tables (if there is more then one) I wan't to show data with different base parameter (getData(x, y, foo)). So the second table could use "getData(x, y, bar)". I don't want to write every time the same function for another table.</p>

<p>The solution above is not working, since reactive functions do not support parameters.</p>

<p>How would you solve this?</p>