issues #316 and #317#324
Conversation
|
Thanks, will test this shortly and provide feedback if needed. |
|
| resp <- httr::GET(link) | ||
| httr::stop_for_status(resp) | ||
| raw <- httr::content(resp, as = "raw") | ||
| if (httr::http_type(resp) == "application/gzip" || grepl("compress=true", link, ignore.case = TRUE)) { |
There was a problem hiding this comment.
The correct data query parameter is compressed=true, not compress=true, see docs: https://ec.europa.eu/eurostat/web/user-guides/data-browser/api-data-access/api-getting-started/sdmx2.1#APIGettingstartedwithSDMX2.1API-Compression
|
The issue with |
|
Yes you are correct but I tested by copying the API link from the downloads button here. https://ec.europa.eu/eurostat/databrowser/view/ttr00011/default/table?lang=en&category=t_avia with compress=true which is a bit different from the documentation. |
|
Ok, I looked at the API urls provided by the data browser and indeed it seems that all download links - even the SDMX-ML 2.1 StructureSpecific (.xml) and SDMX-ML 2.1 Generic (.xml) point to 3.0 endpoint and then add |
issues #316 and #317
created one function to do all the downloads from the links provided from data browser download: