-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider changing this Altrep-interface #232
Comments
There are no meaningful tests in extendr for |
I think you are correct. It seems the SEXP coerceVector(SEXP v, SEXPTYPE type)
{
if (TYPEOF(v) == type)
return v;
SEXP ans = R_NilValue; /* -Wall */
if (ALTREP(v)) {
PROTECT(v); /* the methods should protect, but ... */
/* also "v" is protected by caller */
ans = ALTREP_COERCE(v, type); |
Now I get it. So for extendr, one has to call the altrep as an Robj to invoke it. I needed this information, many times thanks! |
Currently, the bindings generate
in particular, this
c_int
. There is little documentation on it, but this function prototype is satisfied by a functionthat looks like this
Thus the second argument is supposed to be a type, presumably
SEXPTYPE
, which we have now made into anenum
.The text was updated successfully, but these errors were encountered: