[Rcpp-devel] deprecated functionality in Armadillo 2.3.x / 2.4.x and onwards

c s conradsand.arma at gmail.com
Thu Nov 17 07:47:15 CET 2011

On Thu, Nov 17, 2011 at 1:54 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> Cool, thanks.  While I have your attention:  the R and the CRAN
> infrastructure now also test for use of std::cout in linked-in libraries
> (as R has its own i/o buffering; one shall not mix with iostreams):
> ...
> A quick grep shows that there isn't that much code using it.  Would you be up
> for defining a new #define (which defaults to TRUE for you but FALSE for
> RcppArmadillo) so that we could build without?  I'd be happy to prepare a
> patch for you.  If not, we'll just live with the warning as I'd rather not
> constantly patch you code for each new release.

#ifdef'ing the code out would break documented public APIs, so this
particular solution is not really doable.  Sorry.

Furthermore, functions for error notifications (eg. out of bounds
access) also print to the cout stream by default.

I'm open to looking at solutions which provide a different default
stream, as long as it's a C++ std::ostream.

More information about the Rcpp-devel mailing list