Growing a shiny reactive value with a loop and plotting it continuously
Summary Shiny applications executing long-running synchronous operations within the main session thread cause UI freezes. The attempt to progressively update plots using Sys.sleep() inside eventReactive blocks Shiny’s reactive engine, preventing UI updates until completion. Root Cause The core issue stems from blocking Shiny’s main thread: Sys.sleep() pauses R execution unconditionally for/while loops run uninterrupted inside … Read more