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:
thereβs a single function now to perform a request and fetch the result: πππ_πππππππ(). You can now create and modify a request without performing it too (e.g. with πππ_πππ’_πππ())
HTTP errors are now R errors, super convenient as the errors will just nicely display in the console
Better management of secrets
You can cache cacheable results
Better OAuth support
You can automatically retry requests with πππ_πππππ’()
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?
eurostat package currently depends on httr (
httr (>= 1.4.0)
) but on httr website it is stated thatWithin 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?