Debug the Shiny app before publication
Why this lab Diagnose three Shiny code examples in the browser; running the app in desktop R is optional.
Repair three common failures: reading an input outside a reactive context, forgetting to call a reactive expression, and rendering a small-cell value without a guard. The first two break the dependency tracking on which reactive programming rests (Bainomugisha et al., 2013); the third publishes a value that can identify individuals (Sweeney, 2002).
Shiny debugger loading…
What runs here and what does not. This step and Step 6 run in your browser: the repairs above, and the dashboard arithmetic in browser R. A Shiny app cannot run inside the page, so nothing in Module 12 requires you to run one. Optional, outside the browser: to see the blueprint as a live app, install R with the shiny and ggplot2 packages on your own computer, run the Step 6 results fixture, then run the copied code. It has a campus filter only; the browser exercise also has a course filter. Copying the code or selecting a repair does not show that the app runs.