search for: xp_new

Displaying 1 result from an estimated 1 matches for "xp_new".

Did you mean: p_new
2008 Jan 29
2
Problem with new("externalptr")
...en I get: > .Call("sexp_address", new("externalptr")) [1] "0xde2ce0" > .Call("sexp_address", new("externalptr")) [1] "0xde2ce0" Isn't that wrong? I worked around this problem by writing the following C routine: SEXP xp_new() { return R_MakeExternalPtr(NULL, R_NilValue, R_NilValue); } so I can create new "externalptr" instances from R with: .Call("xp_new") I understand that there is not much you can do from R with an "externalptr" instance and that you will have to manipu...