[Rd] persistent C++ objects
Tamas K Papp
tpapp at Princeton.EDU
Mon Jul 24 21:23:10 CEST 2006
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
More information about the R-devel
mailing list