[R] rstan error: C:/Rtools/mingw_64/bin/g++: not found

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Dec 3 17:42:23 CET 2016



On 02.12.2016 12:23, S Ellison wrote:
> Apologies for posting a possibly package-specific question, but I'm not sure whether this is an R or rstan ussue.
>
> Running rstan under R 3.1.1 in windows 10 I get the well-known error
> "Compilation ERROR, function(s)/method(s) not created! C:/Rtools/mingw_64/bin/g++: not found"

Are you sure this is R-3.1.1?

I'd expect such a message for R >= 3.3.0 if you do not update some 
files, but for 3.1.1 the correct PATH should be sufficient.

Nevertheless, there is some code in rstan that seems to deal with Rtools 
for some reason, so perhaps better ask its package maintainer.

Best,
Uwe Ligges


>
> The cause on my system is simple; g++ is not on my C:\ drive; it's on D:
> My system path correctly points to D:, running
>
>> system('g++ -v')
>
> works fine. But the error message shows that either rstan or R is insisting on a specific call on C:.
>
> I suspect that something is causing either a package, or R, to use the wrong drive. It _may_ be related to the fact that R itself is in its usual place in 'C:\Program files'.
>
> Any pointers, either to an answer or to a better place to ask, would be welcome.
>
> Steve Ellison
>
> PS: I can see that there is a _fairly_ simple work-round, but I prefer Rtools where it is for system management reasons and this is (so far) the only place that the path variable is not correctly picked up.
>
>
>
> *******************************************************************
> This email and any attachments are confidential. Any use...{{dropped:8}}
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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