e.r-project.org"
|
| Sent: Wednesday, March 13, 2013 5:56 PM
| Subject: Re: [Rcpp-devel] Invoking class methods via XPtr<> objects in R
|
|
| On 13 March 2013 at 10:15, Suresh Easwar wrote:
| | How does one invoke class methods via XPtr objects in R? I get this
error:
| Error in aptr$f :
[email protected]"
Sent: Wednesday, March 13, 2013 5:56 PM
Subject: Re: [Rcpp-devel] Invoking class methods via XPtr<> objects in R
On 13 March 2013 at 10:15, Suresh Easwar wrote:
| How does one invoke class methods via XPtr objects in R? I get this error:
Error in aptr$f :
On 13 March 2013 at 10:15, Suresh Easwar wrote:
| How does one invoke class methods via XPtr objects in R? I get this error:
Error in aptr$f : object of type 'externalptr' is not subsettable:
I don't understand what you are trying to do below, and do not have time to
understand and debug it for
How does one invoke class methods via XPtr objects in R? I get this error:
Error in aptr$f : object of type 'externalptr' is not subsettable:
cpp file:
#include
struct A {
void f() {}
};
typedef Rcpp::XPtr APtr;
APtr getAPtr()
{
return APtr(new A);
}
struct B {
B(APtr) { }
};
RCPP_MODULE(mytest