rOpenGov / eurostat

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

Error cannot open the connection #305

Closed jlprol closed 4 months ago

jlprol commented 4 months ago

When doing exactly what the tutorial says

library(devtools)
devtools::install_github("ropengov/eurostat")
library(eurostat)
passengers <- search_eurostat("passenger transport")

I get the following error:

Error in open.connection(4L, "rb") : 
  cannot open the connection to 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&downfile=table_of_contents_en.txt'
In addition: Warning message:
In open.connection(4L, "rb") :
  cannot open URL 'https://ec.europa.eu/eurostat/estat-navtree-portlet-prod/BulkDownloadListing?sort=1&downfile=table_of_contents_en.txt': HTTP status was '410 Gone'
pitkant commented 4 months ago

Thank you for opening an issue. It seems you are currently using an older version of the eurostat package. I suggest you update it to the newest available version on CRAN.

jlprol commented 4 months ago

I thought installing from github would get me the latest version. But indeed installing from CRAN solves the issue, thank you.

pitkant commented 4 months ago

Yes, it's curious. When no branch is specified it should install from master/main branch which is in this case effectively the same as the latest CRAN release. I usually use remotes::install_github nowadays so I will have to check how devtools equivalent works (and update the tutorial). Thanks for catching this