I have a relatively simple problem. I want to build a shiny app (and publish it via shinyapps.io) that loads a csv file which is updated daily. Since it takes quite a lot of time to update the data (around 30 min, I am retriving some twitter data using rtweet) I would like to run a separate script (update_data.R) every day that would update the my_data.csv file (which is loaded in the shiny server function) so that the app is not interrupted.
What is the easiest way to update the csv file daily without interrupting the app? Many thanks in advance!