Re: [Rcpp-devel] Read-only property in Rcpp module, can it be a Vector& or must it be a Vector

2011-01-30 Thread Dominick Samperi
On Sun, Jan 30, 2011 at 4:47 PM, Douglas Bates wrote: > As the Grateful Dead said, "What a long, strange trip it's been."  I > have spent over a month trying to debug some code in the lme4a package > that uses Rcpp modules.  Partly I was getting the wrong numerical > answer, which was due to a dum

Re: [Rcpp-devel] Read-only property in Rcpp module, can it be a Vector& or must it be a Vector

2011-01-30 Thread Douglas Bates
On Sun, Jan 30, 2011 at 3:47 PM, Douglas Bates wrote: > As the Grateful Dead said, "What a long, strange trip it's been."  I > have spent over a month trying to debug some code in the lme4a package > that uses Rcpp modules.  Partly I was getting the wrong numerical > answer, which was due to a dum

[Rcpp-devel] Read-only property in Rcpp module, can it be a Vector& or must it be a Vector

2011-01-30 Thread Douglas Bates
As the Grateful Dead said, "What a long, strange trip it's been." I have spent over a month trying to debug some code in the lme4a package that uses Rcpp modules. Partly I was getting the wrong numerical answer, which was due to a dumb cut-and-paste error on my part - now fixed - but more importa

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 while ago, I realized that >

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

2011-01-30 Thread Dirk Eddelbuettel
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 while ago, I realized that no | further vectorization would help and interacting R with C/C++/.. was absolutely | ne

[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