<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi, </div><div><br></div><div>I used to redirect std::cout to Rcpp::Rcout back when I still had Rcout in Rcpp11. e.g. <a href="https://github.com/Rcpp11/Rcpp11/blob/22cc410ea87a2668e547acf6510d07ca812dfca8/src/Rcpp11_init.cpp">https://github.com/Rcpp11/Rcpp11/blob/22cc410ea87a2668e547acf6510d07ca812dfca8/src/Rcpp11_init.cpp</a></div><div><br></div><div>Which was basically leveraging std::cout.rdbuf. </div><div>A variant of <a href="http://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files">http://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files</a></div><div><br></div><div>And then just using std::cout; Of course then you get CRAN complaining. </div><div><br></div><div>Romain</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi, dear all,<div><br></div><div>I am using Rcpp to integrate an available C++ library with R.</div><div><br></div><div>Since the std::cout and std::cerr are not permitted when uploading to CRAN, I have to modify files manually. It will be somewhat laborious if the library </div>

<div><br></div><div>Does anyone have any idea how can I do that automatically?</div><div><br></div><div>Thank you!</div><div><br></div><div>Best,</div><div><br></div><div>KK<br><div><div><br></div>-- <br><div dir="ltr">Qiang Kou<div>
<a href="mailto:qkou@umail.iu.edu" target="_blank">qkou@umail.iu.edu</a><br><div>School of Informatics and Computing, Indiana University</div>
<div><br></div></div></div>
</div></div></div>
_______________________________________________<br>Rcpp-devel mailing list<br><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</blockquote></div><br></body></html>