From tpapp at Princeton.EDU  Mon Jul 24 21:23:10 2006
From: tpapp at Princeton.EDU (Tamas K Papp)
Date: Mon, 24 Jul 2006 21:23:10 +0200
Subject: [Rd] persistent C++ objects
In-Reply-To: <44C518CE.4090106@DecisionSynergy.com>
References: <20060724185040.GA13211@pu100877.student.princeton.edu>
	<44C518CE.4090106@DecisionSynergy.com>
Message-ID: <20060724192310.GA14324@pu100877.student.princeton.edu>

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



[Rd] persistent C++ objects
Tamas K Papp