Applying reactivity concepts

Créer des applications web avec Shiny en 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

Créer des applications web avec Shiny en 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.
Créer des applications web avec Shiny en R

Stop, Delay, Trigger

  • Stop with isolate()
  • Delay with eventReactive()
  • Trigger with observeEvent()
Créer des applications web avec Shiny en R

Let's practice!

Créer des applications web avec Shiny en R

Preparing Video For Download...