rOpenGov / eurostat

R tools for Eurostat data
http://ropengov.github.io/eurostat
Other
234 stars 46 forks source link

ert_bil_eur_d dataset does not seem to work #300

Closed rideofyourlife closed 5 months ago

rideofyourlife commented 5 months ago

As below: image

pitkant commented 5 months ago

Thank you for the report. It seems to be related to readr package / vroom as I got the following error message while debugging get_eurostat_raw():

readr::read_tsv(gzfile(tfile), na = ":", progress = TRUE, 
+                 col_types = readr::cols(.default = readr::col_character()))
Error: The size of the connection buffer (131072) was not large enough
to fit a complete line:
  * Increase it by setting `Sys.setenv("VROOM_CONNECTION_SIZE")`

There are several reports of a similar error message from 2021 and 2022 and I am not sure what causes it and why this happens with this specific dataset. I was able to download the data when I set the parameter use.data.table = TRUE:

avg <- get_eurostat("ert_bil_eur_d", use.data.table = TRUE)

As a temporary solution, does this work for you?

rideofyourlife commented 5 months ago

Yes. Thank you for the suggestion.