thisisnic commented on PR #48634:
URL: https://github.com/apache/arrow/pull/48634#issuecomment-3689372418

   Alternative approach to try based on conversation with CRAN folks:
   
   > The other one is tricky (L152 , 1163, 1194) - you are trying to get the 
class name of the altrep object for which there is no API AFAICT. ...A 
workaround is to use something like:
   
   ```
   const char *altrep_class_name(SEXP x) {
      SEXP l = PROTECT(Rf_lang2(Rf_install(".Internal"),
                          PROTECT(Rf_lang2(Rf_install("altrep_class"), x))));
      SEXP r = Rf_eval(l, R_BaseEnv);
      UNPROTECT(2);
      return CHAR(STRING_ELT(r, 0));
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to