I have an option that enables users to change some default values (a12). If the user chooses to do so and enter new values (a12*), then function (fn1) will be used, if not then the default value of (a12) is used and function (fn2) is used. The problem is in subsequent runs (with only year being changed), fn1 is being used even if the user doesn't change the values a* anymore.
Now I want to be able to update the default values to the new values (a12=a12*), hence any subsequent runs will use fn2. I've tried reactiveValues and so many other things but it doesn't work.
I made a simplified reproducible example below.