Lecture 26
College of Idaho
CSCI 2025 - Winter 2026
req() (Require).
req(input$id) stops execution silently if input$id is missing, NULL, FALSE, or empty.validate() and need().
showNotification(): Displays a temporary message in the corner.withProgress(): Wraps a code block.incProgress(): Increments the bar.shinycssloaders package is a simpler way to add spinners.withSpinner() in the UI.modalDialog() for actions that require explicit confirmation (e.g., deleting data).showModal().req() (Best for missing inputs).validate(need()) (Best for wrong inputs).showNotification() (Best for success/info).withProgress() (Best for slow tasks).modalDialog() (Best for dangerous actions).