In my ui.R I have an actionButton.
actionButton("myLoader", "Load Data")
Update: the server.R side:
output$myLoader <- reactive({
cat("clicked!!") #I never see this logged to the console!
})
I cannot see the click being registered.
Further more, In my server.r, I am not sure how to wire it up, since there is nothing in the UI that DIRECTLY depends on the tasks it will carry out. I want it to 'source' some R files which will load data. The data (for simplicity), ends up in a dataframe called 'myDf'.
The issue is that the ui is already updated by reactive functions, like.:
MainDataset <- reactive({
... #subset(myDf) based on other input controls like sliders etc.
})
output$myplot <- renderChart2({
... #use MainDataset()
})
How can I wire up the action button so that: - it can load the data it needs into myDf - have it somehow trickle through to the existing reactive functions and finally the plots? Not looking for exact solution, just pointers in the structure of what the server side of the actionButton should look like...
I am asking because all the examples seem to be updating a label in the UI, that's not along the lines of what I want to do.
Thanks!