--
--
--
The key here is that when you modify a value that is depended on by other reactive functions (in this case, the dataset) you need to make sure that both reads and writes happen in a way that the reactive system can be aware that something has happened. Regular gets/assign/<- do not meet those criteria.
On master, we've introduced a new feature called reactive values. You use the reactiveValue function to create them. They behave sort of like when you read input$foo; whenever input$foo changes in the future, any reactive functions will know they are out of date. In the same way, when you read a reactive value, when that reactive value changes in the future you'll be notified. However, the difference is that you can write reactive values as well. [...]
Create reactive values like this:
foo <- reactiveValue(100) # initial value of 100
Read them like this:
value(foo)
Write them like this:
value(foo) <- 200
--
--
Gist updated. Still no luck.
current.time <- Sys.time()
current.ab.info <- get.ab.info()
data.updated <- reactiveValue(current.time) # when this code fist ran and the files grabbed
ab.info <- reactiveValue(current.ab.info)
exp.results <- reactiveValue(get.exp.results())
# what is the max data from Last.Date in the test info file? An updated file friom the warehouse would have yesterdays date
data.age <- reactiveValue(as.integer(as.Date(current.time) - as.Date(max(current.ab.info$Last.Date))))