Re: [Rd] persistent C++ objects

From: Tamas K Papp <tpapp_at_princeton.edu>
Date: Mon 24 Jul 2006 - 19:23:10 GMT

On Mon, Jul 24, 2006 at 03:00:30PM -0400, Dominick Samperi wrote:
> R views the C++ code like a function call, so any persistence will have
> to be
> implemented through a database, or by passing working storage along with
> the call. The data structures supported by RcppTemplate V4.2 may be helpful
> for this purpose (in particular, data frames). This version of RcppTemplate
> is still in the CRAN queue, so if you decide to take a look definitely wait
> for this latest version (where complete data frame support is available).

Dominick,

I did look at RcppTemplate, but it seems that it only maps certain objects to R. The class I need to map is really complex and its elements have no obvious correspondence to R objects.

Is there any way to return the pointer to a class from a .C call safely?

Thanks,

Tamas



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue Jul 25 05:22:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 24 Jul 2006 - 22:30:36 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.