I am loading somewhat large data files in the global.R
file of my shiny-app on a shiny-server. The advantage of loading it in the global.R
file is that it only loads once - not for every user again (if I understand correctly). However, the disadvantage is that way the apps takes around 10 seconds to start and I have no way to show a progress bar or anything. Does anybody know how to solve this issues?
Is there a way to save a workspace for ShinyApps? That way the data would not have to be loaded by load(...)
.
For the progress bar, you can use the shinyjs package to hide/show components. See for example this link Shiny Dashboard - display a dedicated "loading.." page until initial loading of the data is done
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.