mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
* chore: restyle examples-shiny * chore: restore select newlines * More consistent approach to whitespace --------- Co-authored-by: Carson <cpsievert1@gmail.com>
This example demonstrates the following concepts:
- Global variables: The
mpgDatavariable is declared outside of theuiandserverfunction definitions. This makes it available anywhere insideapp.R. The code inapp.Routside ofuiandserverfunction definitions is 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 unchecked.