Displaying 1 result from an estimated 1 matches for "sesptr".
2007 Jul 25
6
Using R_MakeExternalPtr
...passed back to another C++ function later on to be used. I'm quite new to R
and this is my first time writing a package, so I hope you can bear with me.
The following is how I create the class and use R_MakeExternalPtr(). This
occurs in a function called "soamInit":
Session* sesPtr = conPtr->createSession(attributes);
void* temp = session;
SEXP out = R_MakeExternalPtr(temp, R_NilValue, R_NilValue);
return out;
The following is how I try to retrieve the class object in a different C++
function called "soamSubmit", where sesCon is the externalPtr :...