[Rd] printf capture

mel mel at altk.com
Thu Apr 19 16:31:30 CEST 2007


Prof Brian Ripley a écrit :

> You can always link in a wrapper that defined printf and passes the 
> arguments to Rprintf.

I apologize but confess i didn't completely understand
this suggestion.

> It's documented in 'Writing R Extensions'.
>   The defines used for compatibility with @Sl{} sometimes causes
>   conflicts (notably with Windows headers), and the known
>   problematic defines can be removed by defining @code{STRICT_R_HEADERS}.

Yes, i added
#define STRICT_R_HEADERS
in my cpp code, and the redefinition warning vanishes indeed.

Many thanks for your precise tips and my apologies for the late answer.



More information about the R-devel mailing list