Closed boshek closed 3 years ago
Excellent idea
I now wonder if this isn't the best solution as it could have some odd behaviours with such high frequency updates as the weather data. Something like this would be better but it isn't on CRAN: https://github.com/ropensci/bowerbird
A WIP package by @sckott might be relevant: https://github.com/ropensci/webmiddens
For now we're using memoise, with a cache expiration of 24hrs. But I'm waiting on webmiddens for sure!
webmiddens won't get any more attention
Booo, but good to know! Thanks
We should consider adding a memoise ability to any download function.
This cache's the output in a session so that unless the parameters have changed, identical download calls will only be downloaded once per session. It is fairly easy to implement and can provide a reasonable buffer to repeated identical downloads.
Here is the memoise package: https://github.com/r-lib/memoise