Registers a reactiveValues object so that snap_take() captures its
fields (all of them, or the ones named in fields) under name in the
snapshot's values section, and so that a restore can write them back.
Usage
snap_track(
values,
fields = NULL,
name = NULL,
session = shiny::getDefaultReactiveDomain()
)Examples
if (interactive()) {
library(shiny)
server <- function(input, output, session) {
prefs <- reactiveValues(digits = 3L, scientific = FALSE)
snap_track(prefs)
}
}
