rOpenGov / eurostat

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

Cannot open the connection to BulkDownloadListing #291

Open barry-coleman-lp opened 7 months ago

barry-coleman-lp commented 7 months ago

Hi All,

I have been having some difficulty using the R eurostat package. Apparently it's related to this link "Migrating from Bulk Download Listing urls to API urls".

I'm apprehensive about digging in to the eurostat R package and changing the API. Does anyone else have this issue? Will the package be updated in CRAN?

R code

library(eurostat)

check_access_to_data()

# Get Eurostat data listing toc <- get_eurostat_toc() head(toc)

# Search for ID search_eurostat("HICP - monthly data (monthly rate of change)") id <- search_eurostat("HICP - monthly data (monthly rate of change)", type = "dataset")$code[1] print(id)

dat_source_monthly_rate_of_change <- get_eurostat(id, time_format = "date")

# Error message Error in open.connection(3L, "rb") : cannot open the connection to 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&downfile=table_of_contents_en.txt'

pitkant commented 7 months ago

Thank you for opening this issue @barry-coleman-lp

As is written in the Eurostat documentation you linked, the problem you are describing is related to Eurostat phasing out the old Bulk Download Listing functionalities and moving on to other means to distribute data. Your problem should be fixed by updating the eurostat package to version 4.0.0.