[Rcpp-devel] DataFrame::create() in endless loop
edd at debian.org
Wed Feb 29 01:38:10 CET 2012
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.
| 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.
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.
| (I'm asking here in case I've misunderstood the scope of its purpose.)
| 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
| Rcpp-devel at lists.r-forge.r-project.org
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx
More information about the Rcpp-devel