I am trying to get this correct. Say I have a input table (rHandsontable) which all of its cells are editable. And I have another output dataTableOutput which will shows its values based on its values in the rHandsontable, after some formulae calculations. Any changes in values in the input rHandsontable should reflect the change in the output dataTableOutput.
How should I make use of Shiny Reactivity for this? Should I use observeEvent(input$rHandsontable_input)? But how would its outputs in dataTableOutput gets updated once there is some change in the input table?
I have used some kind of reactive function as below:
Updated_Outputs <- reactive({
## after loading in .RData file, which was generated from observeEvent(), then
## perform some formulae calculations,
Final_Outputs
invalidateLater(10*1000)
Final_Outputs
})
output$Outputs_table <- renderDataTable(Updated_Outputs())
which the reactive function has its updated .RData from the observeEvent(). This will work and its output does gets updated accordingly, but the problem is it gets updated and refreshed every 10 seconds. I do not want that to be refreshed using invalidateLater, but that it gets updated instantly using Shiny reactivity, once there is any change in the input rHandsontable.
Thanks.