[Rcpp-devel] [Segfault Reason] Beginner Question: Same code *sometimes* fails due to segfault sometimes

2011-05-20 Thread Sunny Srivastava
Hi Rcpp-users: I am a very happy user of Rcpp. I am a statistician who can code a bit. Recently, I have been working on making my cross validation code run faster using Rcpp. I have a question and wanted to check if others have faced similar problems. My code sometimes fails with a segmentation

Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-31 Thread Sunny Srivastava
Thank you Christian! Yes, I am doing exactly that. From previous e-mail archives, I have discovered that this is the advice that everyone gives. As, I am on GNU/Linux, it seems (not sure) that it would be somewhat easier than it is on Windows. Best Regards, S. On Mon, Jan 31, 2011 at 7:22 PM, C

Re: [Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-30 Thread Sunny Srivastava
Thanks again! On Sun, Jan 30, 2011 at 4:16 PM, Dirk Eddelbuettel wrote: > > Howdy, > > Thanks for posting here, and the kind words below. > > On 30 January 2011 at 15:49, Sunny Srivastava wrote: > | Dear Rcpp-List: > | > | I have been working on speeding my R code. A

[Rcpp-devel] Beginner Question: Two misc. questions on usage of Rcpp

2011-01-30 Thread Sunny Srivastava
Dear Rcpp-List: I have been working on speeding my R code. A while ago, I realized that no further vectorization would help and interacting R with C/C++/.. was absolutely necessary. I don't program in C/C++ extensively, so the transition was a difficult process. I tried to use the R API but the er