[Rcpp-devel] returning array from C

Hadley Wickham h.wickham at gmail.com
Tue Jun 11 21:39:50 CEST 2013


>> I'm sure we could just write a wrapper factory function that generates
>> all that code, it's just boilerplate until you get to the calls for
>> calling methods for whatever the XPtr points to....
>>
>> Krzysztof
>
> Maintaining the idea that this external pointer acts as a numeric vector without being one.
>
> What happens then you want its mean, its quantile or whatever. You essentially have to reimplement everything.
>
> So yes : can be done, but lots of work.

And there's no way to get it to work for internal non-generic functions.

Hadley

--
Chief Scientist, RStudio
http://had.co.nz/


More information about the Rcpp-devel mailing list