mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-02 10:45:06 -05:00
This example demonstrates the following concepts:
- Global variables: The
mpgDatavariable is declared outside theshinyServerfunction. This makes it available anywhere insideshinyServer. The code inserver.RoutsideshinyServeris only run once when the app starts up, so it can't contain user input. - Reactive expressions:
formulaTextis a reactive expression. Note how it re-evaluates when the Variable field is changed, but not when the Show Outliers box is ticked.