yutannihilation commented on PR #48634: URL: https://github.com/apache/arrow/pull/48634#issuecomment-3701760623
> compatible with older versions of R which don't have these new functions You can probably backport these functions like below. In my understanding, since [Writing R Extension](https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Some-backports-1) explains how to backport `R_mapAttrib` using `ATTRIB`, we can still use `ATTRIB` on R < 4.6. ```c #if R_VERSION < R_Version(4, 6, 0) SEXP R_altrep_class_name(SEXP x) { return ALTREP(x) ? CAR(ATTRIB(ALTREP_CLASS(x))) : R_NilValue; } #endif ``` -- 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]
