r-windows / rtools-installer

Builds the rtools40 installer
https://cran.r-project.org/bin/windows/Rtools/
27 stars 2 forks source link

Test to build source fails #18

Closed srxsv closed 3 years ago

srxsv commented 3 years ago

Post install and configuring the path the first test succeeds;

> Sys.which("make")
                              make 
"C:\\rtools40\\usr\\bin\\make.exe" 

But the second fails:

> install.packages("jsonlite", type = "source")
trying URL 'https://mran.microsoft.com/snapshot/2017-10-15/src/contrib/jsonlite_1.5.tar.gz'
Content type 'application/octet-stream' length 1096810 bytes (1.0 MB)
downloaded 1.0 MB

'F:\Program' is not recognized as an internal or external command,
operable program or batch file.

The downloaded source packages are in
        ‘C:\Users\[...]\AppData\Local\Temp\RtmpKeZ7LD\downloaded_packages’
Warning messages:
1: running command '"F:/Program Files/Microsoft/R Open/R-3.4.2/bin/x64/R" CMD INSTALL -l "F:\Program Files\Microsoft\R Open\R-3.4.2\library" C:\Users\[...]\AppData\Local\Temp\RtmpKeZ7LD/downloaded_packages/jsonlite_1.5.tar.gz' had status 1 
2: In install.packages("jsonlite", type = "source") :
  installation of package ‘jsonlite’ had non-zero exit status

R is MRAN version and installed on "F:/Program Files/Microsoft/R Open/R-3.4.2/.". System is windows 10 pro 64bit

Rtools has both, 32 & 64 bit, compilers installed, but doesn't seem to determine which to use (64-bit) and locate it where R can find it.

jeroen commented 3 years ago

rtools4 requires R 4.0 or newer. R-3.4.2 is very old, it requires rtools34 or rtools35. By the way, MS open R is being discontinued, it is very much recommended to upgrade to the regular R.

srxsv commented 3 years ago

Thanks for the info.