Le 26/11/2018 à 18:23, Hoffman, Gabriel a écrit :
I am developing a statistical model and I have a prototype working in R
code. I make extensive use of sparse matrices, so the R code is pretty
fast, but hoped that using RCppEigen to evaluate the log-likelihood
function could avoid a lot of memor
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" <<
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]
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
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
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
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
This is really a brilliant observation!
Best,
Yixuan
On Tue, Nov 27, 2018 at 9:34 AM Serguei Sokol wrote:
>
> Le 26/11/2018 à 18:23, Hoffman, Gabriel a écrit :
> > I am developing a statistical model and I have a prototype working in R
> > code. I make extensive use of sparse matrices, so the
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
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
The answer to my problem was to reinstall Rcpp. Thanks for everyone’s help!
Barth
___
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
gt; >
>
>
>
> --
>
> Message: 2
> Date: Tue, 27 Nov 2018 09:35:10 -0600
> From: Barth Riley
> To: " rcpp-devel@lists.r-forge.r-project.org"
>
> Subject: [Rcpp-devel] Problems with Rcout
> Message-ID:
> <
12 matches
Mail list logo