Description
I just installed R 4.5.0 and reinstalled all of the R packages I normally use. devtools
installed without error. However, when I loaded devtools
I got the following error:
> library(devtools)
Loading required package: usethis
Error: package or namespace load failed for ‘devtools’ in inDL(x, as.logical(local), as.logical(now), ...):
unable to load shared object 'C:/Users/joel/AppData/Local/R/win-library/4.5/httpuv/libs/x64/httpuv.dll':
LoadLibrary failure: The specified procedure could not be found.
I checked and the httpuv
package is installed and the file httpuv.dll
is present in the location listed above. I got the same error when I tried to load httpuv
. I was not getting this error under R 4.4.3 and devtools
was working as expected.
I tried reinstalling httpuv
from source to see if that fixed the problem, but I got the following error:
> install.packages("httpuv", type="source")
** libs
g++ -std=gnu++17 -I"C:/PROGRA~1/R/R-45~1.0/include" -DNDEBUG -D_WIN32_WINNT=0x0600 -DSTRICT_R_HEADERS -I'C:/Users/joel/AppData/Local/R/win-library/4.5/later/include' -I'C:/Users/joel/AppData/Local/R/win-library/4.5/Rcpp/include' -I"c:/rtools45/x86_64-w64-mingw32.static.posix/include" -DSTRICT_R_HEADERS -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
/bin/sh: line 1: g++: command not found
make: *** [C:/PROGRA~1/R/R-45~1.0/etc/x64/Makeconf:296: RcppExports.o] Error 127
ERROR: compilation failed for package 'httpuv'
System Info
- Operating System: Windows Server 2016 Standard (I remote in using MS Remote Desktop)
- R version: 4.5.0
- RStudio version: 2024.12.1.563
- devtools version: 2.4.5
- httpuv version: 1.6.15