[Rd] Is there any way to check the class of an ALTREP?
boennecd @end|ng |rom gm@||@com
Mon Oct 19 10:22:45 CEST 2020
It seems as if you can you use the ALTREP macro as done in this
and in base R: https://github.com/wch/r-source/blob/54fbdca9d3fc63437d9e697f442d32732fb4f443/src/include/Rinlinedfuns.h#L118
The macro is defined here in Rinternals.h:
Den man. 19. okt. 2020 kl. 10.13 skrev Jiefei Wang <szwjf08 using gmail.com>:
> Hi all,
> I would like to determine if an ALTREP object is from my package, I see
> there is a function `ALTREP_CLASS` defined in RInternal.h but its return
> value is neither a `R_altrep_class_t` object nor an STRSXP representing a
> class name. I do not know how to correctly use it. Any suggestions?
> [[alternative HTML version deleted]]
> R-devel using r-project.org mailing list
More information about the R-devel