Re: [Rd] persistent C++ objects

2006-07-24 Thread Thomas Lumley
On Mon, 24 Jul 2006, Tamas K Papp wrote: > Hi, > > I am trying to create an R interface for Dynare++ [1], a k-order > solver for rational expectation models. I would like some advice on > how to glue the C++ code to R. > > In C++, it works the following way: > > - a DynareModelEq object is initia

Re: [Rd] persistent C++ objects

2006-07-24 Thread Tamas K Papp
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 helpf

[Rd] persistent C++ objects

2006-07-24 Thread Tamas K Papp
Hi, I am trying to create an R interface for Dynare++ [1], a k-order solver for rational expectation models. I would like some advice on how to glue the C++ code to R. In C++, it works the following way: - a DynareModelEq object is initialized with the formulas, parses them and performs k-ord