[Rcpp-devel] Different Rcout object for each translation unit

Iñaki Ucar iucar at fedoraproject.org
Mon Dec 3 20:41:14 CET 2018


On Mon, 3 Dec 2018 at 20:33, Kevin Ushey <kevinushey at gmail.com> wrote:
>
> I think this might be worth fixing on the Rcpp side -- there should
> really only be one instance of the Rcout object. Would you mind filing
> an issue at https://github.com/RcppCore/Rcpp/issues, so we don't lose
> track of this?

Sure, no problem.

> You could of course just create your own Rcout / Rcerr objects as well
> (the Rstreambuf class is public and part of the Rcpp namespace).

Yeap, but that's suboptimal. I agree that this might be worth fixing
on the Rcpp side. I asked first here because I'm not sure if that's
possible, because packages cannot (in general) link to other packages.

Iñaki


More information about the Rcpp-devel mailing list