Closed wulms closed 3 years ago
Ja - that seems to become an issue. At the institute I can download it without any problems, but at home it fails for me as well. Maybe it's because we use the more reliable, alternative download link now by default?
Please try the download with the main url:
get_RKI_timeseries(url = "https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv")
That gives me an identical table (at the moment!).
Thank you for the link. I can download it with my browser quite easily, but not with R (timeout after 60 seconds).
Hm. Could you check if any combination of url = "https://www.arcgis.com/sharing/rest/content/items/f10774f1c63e40168479a1feb6c7ca74/data"
or url = "https://opendata.arcgis.com/datasets/dd4580c810204019a7b8eb3e0b329dd6_0.csv"
and options for the method
argument in utils::download.file()
works for you?
Maybe there is even a more reliable fie download function for R beyond utils::download.file()
?
Hi, I solved the error. With setting the timeout manually. The original value is 60 seconds here.
options(timeout=120)
Maybe you can add this line somewhere in the script and choose a higher value, when needed.
Best, Niklas
Done - thanks for looking into this!
Hello again,
when i am using the
get_RKI_timeseries()
function the download aborts before downloading the complete data. It stops with different amounts of data (e.g. 84 MB, 102 MB or 127 MB).Is this a known error based on ARCGIS server capacity?
Best, Niklas