[Rcpp-devel] deprecated functionality in Armadillo 2.3.x / 2.4.x and onwards
c s
conradsand.arma at gmail.com
Thu Nov 17 08:51:41 CET 2011
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