Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Dirk Eddelbuettel
On 13 May 2012 at 18:04, Alexey Stukalov wrote: | --- /usr/lib64/R/library/Rcpp/include/Rcpp/iostream/Rostream.h  2012-05-13 | 17:50:58.090987364 +0200 | +++ /fast/opt/lib64/R/library/Rcpp/include/Rcpp/iostream/Rostream.h     | 2012-05-10 13:52:45.54294 +0200 | @@ -24,6 +24,8 @@ |   |  #includ

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Dirk Eddelbuettel
On 13 May 2012 at 18:04, Alexey Stukalov wrote: | Actually, the example above works just fine, since Rostream conforms to ostream | concept. | I just had to make the following change to Rostream.h to make it compile: | | --- /usr/lib64/R/library/Rcpp/include/Rcpp/iostream/Rostream.h  2012-05-13

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Alexey Stukalov
On Sun, May 13, 2012 at 5:42 PM, Dirk Eddelbuettel wrote: > > Hi Alexey, > > On 13 May 2012 at 16:45, Alexey Stukalov wrote: > | thanks for the quick response, there are some clarifications below. > | > | I'm trying to use Rcpp::Rostream from my C++ library, not from the > inline code, > | so I h

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Dirk Eddelbuettel
Alexey, The other thing you could do is to simply copy the logic of Rcpp::Rostream over to something using boost::log. All that really matters is that you end up passing things to Rprintf(). Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com ___

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Dirk Eddelbuettel
Hi Alexey, On 13 May 2012 at 16:45, Alexey Stukalov wrote: | thanks for the quick response, there are some clarifications below. | | I'm trying to use Rcpp::Rostream from my C++ library, not from the inline code, | so I have to deal with the headers inclusion on my own :) Oh, now I see more cl

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Alexey Stukalov
Hi Dirk, thanks for the quick response, there are some clarifications below. Hi Alexey, > On 12 May 2012 at 19:03, Alexey Stukalov wrote: > |* Dear Rcpp developers, > *| > * *|* ATM to define the Rcpp::Rostream I have to fix the > iostream/Rostream.h header > *|* directly and add > *| > * *|* #in

Re: [Rcpp-devel] Rostream.h header

2012-05-13 Thread Dirk Eddelbuettel
Hi Alexey, On 12 May 2012 at 19:03, Alexey Stukalov wrote: | Dear Rcpp developers, | | ATM to define the Rcpp::Rostream I have to fix the iostream/Rostream.h header | directly and add | | #include "Rstreambuf.h" | | before its declarations. | | Including "Rstreambuf.h" in my source file befor

[Rcpp-devel] Rostream.h header

2012-05-12 Thread Alexey Stukalov
Dear Rcpp developers, ATM to define the Rcpp::Rostream I have to fix the iostream/Rostream.h header directly and add #include "Rstreambuf.h" before its declarations. Including "Rstreambuf.h" in my source file before "Rstreambuf.h" doesn't help, it seems the headers are processed in a way that R