I need to save changes to numeric data.frame, then have every other react in my group's dashboard trigger and execute in a particular order. This way the user see the changes they have inputted into the algorithm. How can I control the execution and trigger order of our react variables?
Are there any experts in shiny that are willing to help?
I was able to finally deploy my shiny app:
Below is the code to my algorithm (the link).
Because I know its a bit complicated, I tried to produce a diagram by hand to show how I have connected everything:
As the diagram shows, a slider called metric is created when the user changes variables. The algorithm uses data from
original constraints. This metric slider triggers all of the other reacts in the script. One particular even reactive called
myupdate stores the replaces the values in
original constraints with the values of metric slider. Then other reacts are supposed to compute based on those changed values.
However, click on other inputs in the dashboard something about the execution order causes the data in original constraints to reset.
I think the solution might be saved to disk then have the other variables access it through disk. The documentation talks about such a method here
https://shiny.rstudio.com/articles/persistent-data-storage.html. However, I really would like to control the execution order in order to simplify the dashboard for the user.
Can anyone help?
(P.S. If there is a debug command so I can show how the reactive work which each other please let me know)