rOpenGov / eurostat

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

Switch from httr to httr2 #273

Closed pitkant closed 8 months ago

pitkant commented 1 year ago

eurostat package currently depends on httr (httr (>= 1.4.0)) but on httr website it is stated that

httr is superseded: only changes necessary to keep it on CRAN will be made. We recommend using httr2 instead.

Within some time frame it would be useful to switch from httr to httr2 as httr2 is obviously under active development and therefore better supported. Some new features of httr2:

The main differences with httr are (from Vaarle van Leemput's LinkedIn post:

However I don't think this switch is very urgent as superseded does not mean that httr would be deprecated. On the contrary, it is stated that necessary changes will be made if it was at risk of being booted from CRAN. httr2 is not a new package but in 2022 it was described as an "experimental successor to httr" by its author Hadley Wickham. Although I think he didn't mean the package being experimental as in being unstable (the core functions are probably going to be very stable and dependable) but more like the package is still getting new functionalities and is under active development.

It wouldn't probably be a big task to replace all httr function calls with httr2 calls but the question here is whether we want to do it immediately or wait a bit. What do others think?

pitkant commented 11 months ago

Now merged into v4-dev, feedback very much welcome

pitkant commented 8 months ago

Closed with the CRAN release of package version 4.0.0