Applying reactivity concepts

Building Web Applications with Shiny in R

Ramnath Vaidyanathan

VP of Product Research

Reactivity 101

An app where one can select the number of rows to display, and a table, and graph appears

Building Web Applications with Shiny in R

Reactives and observers

  • Reactive sources are accessible through any input$x.
  • Reactive conductors are good for slow or expensive calculations, and are placed between sources and endpoints.
  • Reactive endpoints are accessible through any output$y, and are observers, primarily used for their side effects, and not directly to calculate things.
Building Web Applications with Shiny in R

Stop, Delay, Trigger

  • Stop with isolate()
  • Delay with eventReactive()
  • Trigger with observeEvent()
Building Web Applications with Shiny in R

Let's practice!

Building Web Applications with Shiny in R

Preparing Video For Download...