I'm curious, is is better to use multiple conditions to trigger an event, or is it better to use the if statement as I have in the pseudo code below to illustrate. I have actually run my real code both ways, and it seems to yield an identical result.
Are they both identical, or does one prove to be better in practice?
myObject <- eventReactive(input$runModel, {
if(input$run.dictionary){
do stuff ...
} #end if
})
myObject <- eventReactive(
{input$runModel
input$run.dictionary},
{
do stuff ...
})