I have a data source that needs to be loaded once and so read the data source into the global environment. I put it in the global environment because the ui.r file needs to access it to take the unique values of some columns to create dropdowns on the ui.
so my global.r has this:
############## global.r file
read.csv("mydatasource")
My issue is the csv file take about 2 minutes to load so I would like to add a progress bar.
Is it possible to out a withProgress in the global.r file?
Also - will the csv be reloaded each time someone comes to the URL?
OR will it only be loaded once which would make the UI faster when someone comes to the URL?
....if it loaded every time is there a way to make it load only once so when a person comes to the URL they don't have to wait?
renderUI, so you can getwithProgressto work since it is in server