I have a shiny application that uses a csv file to generate different figures. I upload my application in my personal linux server using shiny-server. I use this structure for my application
- global.R
- ui.R
- server.R
Inside my global.R file I have this line, which help me to load and read my csv file
df <- read_csv("../Desktop/covid_2021-02-15.csv")
But my application is very slow, I read that objects in the global.R script, are read only one time and are share in all sessions.
Is there other way to load this data frame to have a more efficient application?