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

c s conradsand.arma at gmail.com
Thu Nov 17 09:00:35 CET 2011

btw, Rcpp::rout will need to properly handle the following ostream
member functions:
 .flags(), .precision(), .width(), .fill(), .flush(), .unsetf(), .setf()

ie. they can't just be "no-op" functions.

See "include/armadillo_bits/arma_ostream_meat.hpp" as to how these
member functions are used.

2011/11/17 c s <conradsand.arma at gmail.com>:
> 2011/11/17 Romain François <romain at r-enthusiasts.com>:
>>> I'm open to looking at solutions which provide a different default
>>> stream, as long as it's a C++ std::ostream.
>> That would work for us, as Dirk recently commited a contributed patch
>> to add Rcpp::rout which is an ostream that forwards to R's console
>> printing facilities.
> Ok, in that case I'll add a define in config.hpp, along these lines:
> #if !defined(ARMA_DEFAULT_OSTREAM)
>  #define ARMA_DEFAULT_OSTREAM std::cout
> #endif
> You can then pre-define ARMA_DEFAULT_OSTREAM to Rcpp::rout.
> How does this solution sound ?

More information about the Rcpp-devel mailing list