From mel at altk.com  Thu Apr 19 16:31:30 2007
From: mel at altk.com (mel)
Date: Thu, 19 Apr 2007 16:31:30 +0200
Subject: [Rd] printf capture
In-Reply-To: <Pine.LNX.4.64.0704121558260.11792@gannet.stats.ox.ac.uk>
References: <461E02EE.7040105@altk.com>
	<Pine.LNX.4.64.0704121122480.26905@gannet.stats.ox.ac.uk>
	<461E3F8F.4050801@altk.com>
	<Pine.LNX.4.64.0704121558260.11792@gannet.stats.ox.ac.uk>
Message-ID: <46277D42.9080203@altk.com>

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.



[Rd] printf capture
mel