RShiny computation progress indicator

人盡茶涼 提交于 2021-02-08 10:20:11

问题


I made an RShiny app with a lengthy computation.

The lengthy computation leaves the screen at a standstill, and I am worried that either the computation came up blank, or that the connection timed out, or something else might have happened.

Is there a way to show an indicator (ie rotating hour glass, etc) on the screen to show the user that processing is ongoing.


回答1:


You could add a progress bar. http://shiny.rstudio.com/reference/shiny/1.2.0/Progress.html.

This might take a bit of refactoring, but it improves the UX and would give you an idea of where the failure is occurring(Connection, computation, etc.).



来源:https://stackoverflow.com/questions/53852969/rshiny-computation-progress-indicator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!