I tried installing the package "eurostat" and I keep getting this error:
install.packages("eurostat")
library(eurostat)
Error: package or namespace load failed for ‘eurostat’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘httr2’
error displayed in console part1 error displayed in console part2
The exact same error appears as well every time I try to activate the "eurostat" library.
I tried installing the "httr2" dependency manually but then I get this message: Warning in install.packages : installation of package ‘httr2’ had non-zero exit status
I tried uninstalling and re-installing these packages multiple times but it has the same outcome everytime. I also installed manually all "eurostat" dependencies at some point.
I have R version 4.4.2 so the problem shouldn't be there. I also tried restarting my PC a few times hoping that would solve it but no.
Does anyone know what I can do for "eurostat" package to install properly? I would very much appreciate advice.