[Rcpp-devel] rout and rerr instead of cout and cerr in Rcpp
Romain François
francoisromain at free.fr
Tue Nov 10 13:05:18 CET 2009
On 11/10/2009 12:23 PM, Dirk Eddelbuettel wrote:
>
> On 10 November 2009 at 09:47, Romain François wrote:
> | Hi,
> |
> | Would it make sense to have an rout and rerr so that we could do :
> |
> | rout<< "bla bla"<< endl ;
> |
> | and
> |
> | rerr<< "bla bla"<< endl ;
> |
> | and this would go into Rprintf and REprintf ? or maybe we can directly
> | redefine cout and cerr
>
> Hm. That never really arose in my use. cout was mostly for debugging.
>
> I think a C++-ish way is to create<< operators (that eg RcppDate and
> RcppDatetime have).
>
> Where you thinking of something other than debugging help?
Not really, but just sort of making sure debugging is consistent with
the recommendation from WRE of using Rprintf instead of printf
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/EAD5 : LondonR slides
|- http://tr.im/BcPw : celebrating R commit #50000
`- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
More information about the Rcpp-devel
mailing list