This fixes the problem where a new ghcnd_stations() call cannot write a local dump of the stations data in the hoardr cache. I added a single line before the GET call to write the data locally to create the cache directory if it doesn't exist, according to what I read about hoardr. The call now works.
I am unsure if this is the appropriate place to place the mkdir() cache creation call, but it is a place that will work for the limited scope call of ghcnd_stations().
Fix
ghcnd_stations()
error.Description
This fixes the problem where a new
ghcnd_stations()
call cannot write a local dump of the stations data in thehoardr
cache. I added a single line before the GET call to write the data locally to create the cache directory if it doesn't exist, according to what I read abouthoardr
. The call now works.I am unsure if this is the appropriate place to place the
mkdir()
cache creation call, but it is a place that will work for the limited scope call ofghcnd_stations()
.Related Issue
Fix #349