On 29 February 2012 at 08:39, Darren Cook wrote: | > I used IntegerVector and friends, | > and changed from DataFrame to List. | | Hello Steffen, | Do you mean you needed to do both those changes to get it to work? Or | either would have fixed your problem, but you decided to do both "just | in case"? | | Slava wrote: | >> I had the same problem a while ago and the solution we’ve come up with | >> was to get rid of Rcpp::DataFrame and use Rcpp::XPtr instead. | (Ref: | http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2012-January/003345.html | ) | | XPtr is just for passing a handle to a block of bytes back to R, that it | can then pass back to your C++ code at a later stage, isn't it? I.e. not | a solution if you wanted to manipulate the data in R.
Correct. I think the main advantage of working with an IntegerVector is that you may well save another copy, and dito with List vs DataFrame. Same diligent memory profiling may reveal more. Dirk | (I'm asking here in case I've misunderstood the scope of its purpose.) | | Darren | | | -- | Darren Cook, Software Researcher/Developer | | http://dcook.org/work/ (About me and my work) | http://dcook.org/blogs.html (My blogs and articles) | _______________________________________________ | Rcpp-devel mailing list | [email protected] | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel -- "Outside of a dog, a book is a man's best friend. Inside of a dog, it is too dark to read." -- Groucho Marx _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
