I want to bookmark my application state, but reactiveValues are seemingly excluded from the default scope of saved elements. I know I can save them manually e.g. with
onBookmark(function(state) {
state$values$uploaded_data$expr_tab <- data$expr_tab ## reactiveValues()
state$values$uploaded_data$meta_tab <- data$meta_tab ## reactiveValues()
state$values$test_variable <- test_variable() ## reactiveVal()
})
and then unpack them with
onRestore(function(state) {
data$expr_tab <- state$values$uploaded_data$expr_tab
data$meta_tab <- state$values$uploaded_data$expr_tab
test_variable(state$values$test_variable)
})
But I have quite a lot reactiveValues in my app.
Is there an object that keeps track of all reactiveValues? Just the names of the variables would already be sufficient.