Conflict between embedded R and use of NSString class method
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