Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
Le 02/12/10 22:27, Andrew Redd a écrit : I realized that one again I responded off list. But yes my problem was fixed. I found the hard way that classes now require explicit constructors. Thanks, Andrew I guess you mean that it is required to explicitely expose them ? That's true. This has in

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Andrew Redd
I realized that one again I responded off list. But yes my problem was fixed. I found the hard way that classes now require explicit constructors. Thanks, Andrew On Thu, Dec 2, 2010 at 1:42 PM, Romain Francois wrote: > Hmm. Actually my toy example was not right (it is getting late in france, I >

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
Hmm. Actually my toy example was not right (it is getting late in france, I think I've had enough screen time for one day). This works for me : require(inline) require(Rcpp) fx <- cxxfunction(, "", includes = ' class Foo { public: Foo() : x(2.0){} Foo(double x_) : x(x_)

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
Apparently, creation of the object works, but the show method for the class has a problem, so you should be able to do: obj <- new(Module("GPU_BAYES",'gpuBayes')$data3) Can you confirm ? (I only tried on a toy example) but then when you print the object, it bombs out. I'm narrowing this down,

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 2:47 PM, Romain Francois wrote: > Le 02/12/10 20:34, Dominick Samperi a écrit : > >> On Thu, Dec 2, 2010 at 2:31 PM, Andrew Redd > > wrote: >> >>That exposes the data3 class, but does not solve the pointer problem. >> >> >> Add a default contruct

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
Le 02/12/10 20:34, Dominick Samperi a écrit : On Thu, Dec 2, 2010 at 2:31 PM, Andrew Redd mailto:amr...@gmail.com>> wrote: That exposes the data3 class, but does not solve the pointer problem. Add a default contructor. This would have been detected at compile time. Please read the vigne

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
That's odd that it only happens for your package. Guess #2 is that it might be a namespace issue. Can you try adding: import(methods) import(Rcpp) to your NAMESPACE file Romain Le 02/12/10 20:31, Andrew Redd a écrit : That exposes the data3 class, but does not solve the pointer problem. On

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Andrew Redd
I have a default constructor. -Andrew On Thu, Dec 2, 2010 at 12:34 PM, Dominick Samperi wrote: > > > On Thu, Dec 2, 2010 at 2:31 PM, Andrew Redd wrote: > >> That exposes the data3 class, but does not solve the pointer problem. > > > Add a default contructor. > > >> >> >> On Thu, Dec 2, 2010 at 1

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Dominick Samperi
On Thu, Dec 2, 2010 at 2:31 PM, Andrew Redd wrote: > That exposes the data3 class, but does not solve the pointer problem. Add a default contructor. > > > On Thu, Dec 2, 2010 at 12:24 PM, Romain Francois > wrote: > >> Le 02/12/10 20:05, Andrew Redd a écrit : >> >> I updated to the new Rcpp

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Andrew Redd
That exposes the data3 class, but does not solve the pointer problem. On Thu, Dec 2, 2010 at 12:24 PM, Romain Francois wrote: > Le 02/12/10 20:05, Andrew Redd a écrit : > > I updated to the new Rcpp 0.8.9 then added a new function to my class. >> It compiles fine the Module is found and loads t

Re: [Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Romain Francois
Le 02/12/10 20:05, Andrew Redd a écrit : I updated to the new Rcpp 0.8.9 then added a new function to my class. It compiles fine the Module is found and loads the class definition seems to be there, but when I try to create a instance of the class I get the error: R> new(Module("GPU_BAYES",'gp

[Rcpp-devel] object '.pointer' not found

2010-12-02 Thread Andrew Redd
I updated to the new Rcpp 0.8.9 then added a new function to my class. It compiles fine the Module is found and loads the class definition seems to be there, but when I try to create a instance of the class I get the error: R> new(Module("GPU_BAYES",'gpuBayes')$data3) Error in get(".pointer", env