nevrome / covid19germany

R package - Load, visualise and analyse daily updated data on the COVID-19 outbreak in Germany
Other
46 stars 8 forks source link

Download issues (Date parsing?) #43

Closed stschiff closed 3 years ago

stschiff commented 3 years ago

I just tried today with covid19germany::get_RKI_timeseries() and got

Downloading file...
|=============================================================================================================| 100% 166 MB
Warning: 2205910 parsing failures.
row        col                    expected                 actual                                                                          file
  1 Meldedatum date like %Y/%m/%d %H:%M:%S 2020/09/30 00:00:00+00 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv'
  1 Refdatum   date like %Y/%m/%d %H:%M:%S 2020/09/30 00:00:00+00 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv'
  2 Meldedatum date like %Y/%m/%d %H:%M:%S 2020/10/29 00:00:00+00 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv'
  2 Refdatum   date like %Y/%m/%d %H:%M:%S 2020/10/29 00:00:00+00 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv'
  3 Meldedatum date like %Y/%m/%d %H:%M:%S 2020/11/03 00:00:00+00 'https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv'
... .......... ........................... ...................... ............................................ [... truncated]

seems the RKI is changing their data format. Quite annoying for maintenance of course...

nevrome commented 3 years ago

I think this is fixed with v.0.1.0. For people with the same issue: Restart your R session after installing the latest version of covid19germany.

Really unfortunate that the primary and the secondary download link (so the one we're using now) are not returning the same table any more.