selectInput(
"dept",
"Select Department",
choices = dept_choices,
selected = dept_choices[1],
multiple = FALSE
)
rstudio::conf(2022)
Building Production-Quality Shiny Applications
Eric Nantz
The beginning (and end) of a typical Shiny interaction
Open the application in ex-1/app.R
and see if you can improve the reactivity flow in the next 5 minutes. View more details at the Exercise 1 page.
05:00
The sources used in downstream endpoints
Intermediate bridges between sources and endpoints.
Consumers of one or more sources.
Open the application in ex-2/app.R
which has 2 inputs that drive the visualization. See if you can optimize the reactive calculations in the next 5 minutes.
05:00
{reactlog}
{reactlog}
packageWhen constructing a Shiny app, lazy is not a bad thing for reactives!
observeEvent
ensures processing only happens based on a single trigger
reactiveValues
or reactiveVal
reactiveValues
and reactiveVal
Code-Along 1: Building the MET image viewer foundation
bindEvent
: Modify an object to support triggersinvalidateLater
: Use running time as a source to reactivityreactivePoll
: Create a reactive data source invalidated by a check functionisolate
: Prevent reactivityreq
: Ensure pre-conditions are met before proceedingdebounce/throttle
: Slow the reactive-roll down