Progress bar with shinycssloaders

The shinycssloaders package makes it even easier to allow your user to see that an output is loading. It is available on CRAN and so can be installed with this:

install.packages(“shinycssloaders”)

Outputs including graphs and tables will now show an animated busy icon while they load. The code is as simple as wrapping an output in withSpinner(), or even just piping it to withSpinner():

withSpinner(plotOutput(“myplot”))

Or, you can use the following:

plotOutput(“myplot”) %>%withSpinner()

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.