Hi, I used to redirect std::cout to Rcpp::Rcout back when I still had Rcout in Rcpp11. e.g. https://github.com/Rcpp11/Rcpp11/blob/22cc410ea87a2668e547acf6510d07ca812dfca8/src/Rcpp11_init.cpp
Which was basically leveraging std::cout.rdbuf. A variant of http://stackoverflow.com/questions/10150468/how-to-redirect-cin-and-cout-to-files And then just using std::cout; Of course then you get CRAN complaining. Romain > Hi, dear all, > > I am using Rcpp to integrate an available C++ library with R. > > 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 > > Does anyone have any idea how can I do that automatically? > > Thank you! > > Best, > > KK > > -- > Qiang Kou > [email protected] > School of Informatics and Computing, Indiana University > > _______________________________________________ > Rcpp-devel mailing list > [email protected] > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
