[R] R CMD build/install: wrong Rtools include path is passed to g++

Uwe Ligges ligges at statistik.tu-dortmund.de
Thu Dec 23 12:07:59 CET 2010

Actually, this is described in "R Installation and Administration".

Uwe Ligges

On 21.12.2010 05:51, Andy Zhu wrote:
> Never mind.  Found the solution: the package coded the rtools path in
> Makevars.win.  So I was able to compile (but have another problem though).  But
> not sure if there is an environment name for rtools, maybe RTOOLS_HOME ...
> Thanks.
> ----- Forwarded Message ----
> From: Andy Zhu<andyzhu35 at yahoo.com>
> Cc: r-help at r-project.org
> Sent: Mon, December 20, 2010 11:33:31 PM
> Subject: [R] R CMD build/install: wrong Rtools include path is passed to g++
> Hi:
> I am trying to build/install rparallel source package in win32 using Rtools/R
> CMD.  However, R CMD build or install fails.  The R CMD build output shows that
> the path of Rtools/MinGW/include is wrong in g++ -I. How can I pass/configure
> the correct include path to R CMD? Tried this in both R 2.12 and 2.11 with
> compatible Rtools and Miktex/chm helper. Neither succeeded.
> Note, the R/Rtools/MinGW setting works fine if the package doesn't have C/C++
> code.  I was able to install my own R package which doesn't have C/C++ code.
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list