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()