Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open the connection to BulkDownloadListing #291

Open
barry-coleman-lp opened this issue Jan 22, 2024 · 1 comment
Open

Cannot open the connection to BulkDownloadListing #291

barry-coleman-lp opened this issue Jan 22, 2024 · 1 comment

Comments

@barry-coleman-lp
Copy link

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
Copy link
Member

pitkant commented Jan 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

2 participants