I've have built a rather complex R Shiny application, which runs on my Shiny Server (Ubuntu 20.04). I'm using a global.R file to load various datasets and functions.
After a restart of the shiny-server or any new changes to the ui.R or server.R files, the Shiny Server seems to take between 30-40 seconds to launch the app for the first time. After this initial launch, all data seems to be cached, thus the loading time during further sessions reduces to a few seconds.
Is there any way to pre-load all data and functions even before the initial launch of the shiny app? I thought using a global.R file and maybe executing it before the initial launch would help, but this does not seem to work. Any help/comments/thoughts are greatly appreciated!