[Rcpp-devel] Problems with Rcout

Iñaki Ucar iucar at fedoraproject.org
Tue Nov 27 16:50:13 CET 2018


On Tue, 27 Nov 2018 at 16:35, Barth Riley <barthriley at comcast.net> wrote:
>
> Dear Rcppers
>
> I am encountering a problem with Rcout. Even with basic string output, when I run the function containing the call to Rcout, no output is generated. Here is a simple example of what I’m trying to do:
>
> // [[Rcpp::export]]
> void testFunc() {
>            Rcpp::Rcout << "testFunc begins" << std:endl;
>            . . .
> }

Note that it should be "std::endl", with double colon. Assuming this
is a transcription error, you'll have to provide more context (and,
ideally, some kind of reproducible example), because this works just
fine.

Iñaki


More information about the Rcpp-devel mailing list