I am trying to install an R package which contains some C code under Windows. I have R 3.3.0 installed and also Rtools 3.3.0 installed on my computer's D: disk.
And d:\Rtools\bin
and d:\Rtools\mingw_64\bin
are all in PATH. I checked gcc command under command window, and it is working.
But when I am installing the package, it always trying to use c:/Rtools/mingw_64/bin/gcc
, which should be in d:
disk, then it gives c:/Rtools/mingw_64/bin/gcc: not found
error.
Can anyone help on this issue?
Thanks!
OK, I sent an email to the R-package-devel group regarding to this issue. And the following is the reply, and it does work!
Please adapt your BINPREF variable in R/etc/$Arch/Makeconf files appropriately to point to the coresponding compiler for each architecture - this is new with the new toolchain we use with R >= 3.3.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With