Closed anishjoni closed 1 month ago
I have the same problem
Can you please try installing the pak package, and then using that to install httr2: pak::pak("httr2")
. It will either work or at least give a more informative error.
Can you please try installing the pak package, and then using that to install httr2:
pak::pak("httr2")
. It will either work or at least give a more informative error.
Thx! I got it! It indicated that I was missing the appropriate Rtools. It shows the following message:
Error:
! error in pak subprocess
Caused by error:
! Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
Type .Last.error to see the more details.
I used the following command pkgbuild::check_build_tools(debug = TRUE)
to perform a self-check and installation. After installing Rtools, I was able to successfully install httr2.
This seems to be a straightforward error, the Windows binary of the latest version, 1.0.4, is not yet available. What's odd is that it has now been 5 days since version 1.0.4 landed on CRAN and the Windows binary of version 1.0.4 is still not available.
Looks like there is an error on CRAN with old release and macos https://cran.r-project.org/web/checks/check_results_httr2.html. Can that be causing the unavailability of the Windows binary?
Info above is current as of the time of my posting.
Can you please try installing the pak package, and then using that to install httr2:
pak::pak("httr2")
. It will either work or at least give a more informative error.
Sorry, my error got resolved before I could try installing it via pak package.
This worked for me: install.packages("httr2", type="binary")
Looks like the binary build was just a bit slower than usual. It's there now.
Hello,
I have tried installing httr2 package through install.packages, using remotes::install_github() and also chaning CRAN repos but still the installation fails.
Here's a reprex of the error:
Created on 2024-09-14 with reprex v2.1.1