[Rcpp-devel] DataFrame::create() in endless loop

Darren Cook darren at dcook.org
Wed Feb 29 00:39:22 CET 2012


> 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.
(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)


More information about the Rcpp-devel mailing list