thibautjombart / covid19_bed_occupancy

Shiny app providing estimates of future bed occupancy given recent admissions
https://cmmid-lshtm.shinyapps.io/hospital_bed_occupancy_projections/
Other
12 stars 5 forks source link

Adding progress bar for simulation #59

Open samclifford opened 4 years ago

samclifford commented 4 years ago

From discussion in #55

If there's a long simulation being done it would be good to give feedback to the user on how long it will take to complete so that they know the app isn't being unresponsive and they don't start trying to re-run it.

https://shiny.rstudio.com/articles/progress.html The issue will be that we're looping inside a function, predict_beds(), and so will have to embed the progress bar within that and ensure that the withProgress() call wraps the call to the right part of the server call.

gwenknight commented 4 years ago

Agree re: feedback to user that generation is happening otherwise get lots of button hits!