-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem installing in Windows #1219
Comments
Seems to apply to both Rtools34 and 33
|
That fix from STAT545 issue 429 worked for me on Windows 10. That is, running
|
The suggested fix of running # R version 3.3.3 (2017-03-06)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows >= 8 x64 (build 9200)
install.packages("devtools")
library(devtools)
has_devel() # has error
find_rtools()
has_devel() # now it works Output was > install.packages("devtools")
Installing package into ‘C:/Users/Mark/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/devtools_1.13.1.zip'
Content type 'application/zip' length 440212 bytes (429 KB)
downloaded 429 KB
package ‘devtools’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Mark\AppData\Local\Temp\RtmpW2jpI5\downloaded_packages
> library(devtools)
> has_devel() # has error
"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD SHLIB foo.c
Warning message:
running command 'make -f "C:/PROGRA~1/R/R-33~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.3/share/make/winshlib.mk" SHLIB="foo.dll" WIN=64 TCLBIN=64 OBJECTS="foo.o"' had status 127
Error: Command failed (1)
> find_rtools()
[1] TRUE
> has_devel() # now it works
"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD SHLIB foo.c
C:/RBuildTools/3.4/mingw_64/bin/gcc -I"C:/PROGRA~1/R/R-33~1.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O2 -Wall -std=gnu99 -mtune=core2 -c foo.c -o foo.o
C:/RBuildTools/3.4/mingw_64/bin/gcc -shared -s -static-libgcc -o foo.dll tmp.def foo.o -Ld:/Compiler/gcc-4.9.3/local330/lib/x64 -Ld:/Compiler/gcc-4.9.3/local330/lib -LC:/PROGRA~1/R/R-33~1.3/bin/x64 -lR
[1] TRUE |
I am on win10 with R 3.4.1 x64. everthing works fine except rtools which isn't recognized with rstudio (devtools). I can't build & load from source and naturally can't install devtools from github. In my rsession I get:
running the command in cmd returns:
|
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
Installed Rtools as per instructions
The text was updated successfully, but these errors were encountered: