Re: [Rcpp-devel] Problems with Rcout

2019-02-05 Thread Dirk Eddelbuettel
On 5 February 2019 at 15:26, Barth Riley wrote: | I think std:endl should be std::endl Indeed. I actually made the same typo a few days ago but as I recall the compiler was also pretty clear that I was wrong there and gave me a hint. Quick check seems to confirm that: R> library(Rcpp) R> cppFu

Re: [Rcpp-devel] Problems with Rcout

2019-02-05 Thread Barth Riley
I think std:endl should be std::endl Barth On 11/27/2018 9:35 AM, Barth Riley 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 tryi

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Jeff Newmiller
Time for you to document your working environment, Barth. Things that occur to me are the outputs of sessionInfo() and and system2( "gcc", "--version"). On November 27, 2018 8:21:57 AM PST, Barth Riley wrote: >Thanks for your reply. No, I’m not calling this using parallelization, >and to my know

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 17:22, Barth Riley wrote: > > Thanks for your reply. No, I’m not calling this using parallelization, and to > my knowledge at least I have not redirected stdout (how would I check this?). > The function is meant to be called by another function, but I am testing it > dire

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Barth Riley
Thanks for your reply. No, I’m not calling this using parallelization, and to my knowledge at least I have not redirected stdout (how would I check this?). The function is meant to be called by another function, but I am testing it directly from the R console. Barth

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 17:06, Barth Riley wrote: > > Here is a more complete example. Note that I want to output text strings for > debugging purposes as the code for treatAsVector = true is never executed. The contents of the function are irrelevant. If I compile and execute this in a clean ses

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Barth Riley
Here is a more complete example. Note that I want to output text strings for debugging purposes as the code for treatAsVector = true is never executed. Barth NumericVector getValidCount(Rcpp::NumericMatrix m, bool treatAsVector) { Rcpp::Rcout << "getValidCount B

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Serguei Sokol
Le 27/11/2018 à 16:35, Barth Riley a écrit : 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

Re: [Rcpp-devel] Problems with Rcout

2018-11-27 Thread Iñaki Ucar
On Tue, 27 Nov 2018 at 16:35, Barth Riley 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]