[R] C++ classes as opaque types in R

Heiko Schaefer heiko.schaefer at swissrisk.ch
Mon Aug 23 16:11:26 CEST 2004

Dear all,

suppose I would have an abstract class in C++ representing some
complex type. Is it possible to expose a selected C++ interface
to R while retaining all the gory details within C++. Other 
scripting languages have the concept of an opaque pointer and
constructor/destructor hooks, so that the scripting language's
garbage collection can clean up (e.g. Python). Is there anything
like this in R?

Thanks a lot,

More information about the R-help mailing list