I run a refresh script and load my data in my server.R file...
https://github.com/corynissen/cook-county-tweet-dashboard/blob/master/cctweets/server.R
I also put in a button to refresh the data on command. This works.
The problem is that when I press the refresh button, my data file (data.Rdata) is in fact refreshed and the web page reflects the changes. But, if I refresh the whole page using the browser refresh button, it reverts back to the older data. data.Rdata is still up to date, however.
So, how should I configure my server.R file such that on refresh or first page load, it updates the data.Rdata file and loads the new data?
Thanks for your help.
cn