bcgov / bcgov-r-geo-workshop

Some lessons & resources supporting an R geospatial workshop & hackathon
Other
26 stars 10 forks source link

Fix download_hydat function from {tidyhydat} #1

Open boshek opened 4 years ago

boshek commented 4 years ago

tidyhydat is a package that uses Environment Canada's HYDAT database to extract streamflow data into R. The package has a function called download_hydat that downloads the function and stores it locally in a standard location across OS's. Sometimes however a user may want to download it to a specific place. The steps are:

1) Ask user if they want to download 2) Download file 3) Unzip it 4) Move the file where the user wants it.

The unzipping process seems fragile when one wants to download the HYDAT database to a non-standard location. More details here:

https://github.com/ropensci/tidyhydat/issues/129

boshek commented 4 years ago

Combined with #3