Re: [Rcpp-devel] [Rd] Newbie Rccp module question. "Failed to initialize module pointer"???

2011-03-03 Thread Davor Cubranic
Re-forwarding the thread to Rcpp-devel, as suggested by Dirk in his original reply. Davor On 2011-03-02, at 5:59 PM, A Zege wrote: > Dirk, thanks for your reply. I posted my answer right away and went on > vacation. My post was pending since then. Still cannot post, so I opened > another profi

Re: [Rcpp-devel] data frame construction error

2011-03-03 Thread Dirk Eddelbuettel
Hi Robin, On 3 March 2011 at 17:22, Robin Aly wrote: | Hi, | | I am building a Rcpp wrapper for the Information Retrieval package Lemur. | | For this, I need to construct a data frame of a dynamic number of columns. | | In my code, I do the following (condensed view): | | SEXP result=R_N

[Rcpp-devel] data frame construction error

2011-03-03 Thread Robin Aly
Hi, I am building a Rcpp wrapper for the Information Retrieval package Lemur. For this, I need to construct a data frame of a dynamic number of columns. In my code, I do the following (condensed view): SEXP result=R_NilValue; std::vector*> tfs(iters.size()); tfs[i] is a numeric vec