Skip to content

Commit

Permalink
Added hoardr mkdir() call to make sure cache path exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpettis_irco authored and sckott committed May 15, 2020
1 parent 624d126 commit bea7c9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/ghcnd.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ get_stations <- function(refresh = FALSE, ...) {
} else {
if (file.exists(ff)) unlink(ff)
if (file.exists(ffrds)) unlink(ffrds)
ghcnd_cache$mkdir()
res <- GET_retry(
"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt",
disk = ff, ...)
Expand Down

0 comments on commit bea7c9a

Please sign in to comment.