Learn R Programming

rewind (version 0.3.0)

rewind_pause: Suspend and resume history capture

Description

While capture is paused, the application applies changes as usual. But rewind does not record them. Use this around changes that your code makes, and that the user must not step back into. Examples are a saved session that you restore, or a URL bookmark that you apply.

Usage

rewind_pause(session = shiny::getDefaultReactiveDomain())

rewind_resume(session = shiny::getDefaultReactiveDomain())

Value

TRUE, invisibly.

Arguments

session

The Shiny session. The default is the current session.

Examples

Run this code
if (interactive()) {
  library(shiny)

  server <- function(input, output, session) {
    rewind_enable()
    rewind_pause()
    # ... apply a saved bookmark here ...
    rewind_resume()
  }
}

Run the code above in your browser using DataLab