Closed saeeshm closed 2 years ago
For the download issue that does seem like a bug. For now you can run this code if you need to get up and running:
library(tidyhydat)
temp_zip <- tempfile(fileext = ".zip")
curl::curl_download(
"https://collaboration.cmc.ec.gc.ca/cmc/hydrometrics/www/Hydat_sqlite3_20220721.zip",
quiet = FALSE,
destfile = temp_zip
)
unzip(temp_zip, exdir = hy_dir())
For the flow data, that is actually quite good for HYDAT. Remember that all the data has to be validated before going into HYDAT. That fact that they have data up to Feb 2022 is pretty good. HYDAT is a great tool for historical analysis.
Thanks for the update! I had assumed so far that with every new publication, all data until the date of publication is validated (since realtime data does exist all the way until July, and onward). Good to know that this is not that case.
This fix works for now, thank you. Let me know if you need anything more from me regarding the bug.
@saeeshm a new version is on its way to cran right now but you may have noticed that my fix wasn't really a fix. Try installing from github (remotes::install_github("ropensci/tidyhydat")
) and see if that works. Thanks for reporting!
Hydat_sqlite downloads are failing since the July 21 update. The download_hydat function just returns a message saying "hydat not successfully downloaded". I've added a reprex below.
I also tried download the hydat.sqlite3 dataset directly from the host url. This seems to work fine, however all flow and level data is missing for February 2022 and onwards?
Created on 2022-08-11 by the reprex package (v2.0.1)
Here is my session info: