[R-SIG-Mac] Conflict between embedded R and use of NSString class method

Simon Urbanek simon.urbanek at r-project.org
Sun Oct 28 21:43:46 CET 2012


On Oct 28, 2012, at 2:37 PM, Paul Johnson wrote:

> I'm trying to use embedded R (REngine). In my own code I call the NSString
> class method '+stringWithContentsOfFile:encoding:error:'. Unfortunately, I
> can't because the embedded R that I include using '#import "Rengine.h"'
> redefines 'error' and the compiler is unable to recognize the NSString
> class method.
> 
> How can this dilemma be solved?
> 

I strongly prefer using R_NO_REMAP since there are a lot of "gotchas" when using shortened R names including the "error" one.

Cheers,
Simon



More information about the R-SIG-Mac mailing list