search for: altrep_class

Displaying 5 results from an estimated 5 matches for "altrep_class".

2020 Oct 19
2
Is there any way to check the class of an ALTREP?
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? Thanks, Jiefei [[alternative HTML version deleted]]
2020 Oct 19
2
Is there any way to check the class of an ALTREP?
...b3927e5fc03d12f1a8e7593fddc04d2/src/include/Rinternals.h#L325 > > Den man. 19. okt. 2020 kl. 10.13 skrev Jiefei Wang <szwjf08 at 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? >> >> Thanks, >> Jiefei >> >> [[alternative HTML version dele...
2020 Oct 19
1
Is there any way to check the class of an ALTREP?
...y useful documents. Actually, the question is related to the SharedObject package that Benjamin has pointed to. I wanna avoid sharing an object that has already been shared, so I need to check whether an object is an ALTREP that is defined in my package. Since the ALTREP definition involves an ` R_altrep_class_t` object and a class name, I will expect to see a method defined in R to retrieve such information. I hope this can clarify my question. Best, Jiefei On Mon, Oct 19, 2020 at 5:38 PM Benjamin Christoffersen <boennecd at gmail.com> wrote: > > You happened to send a link which points...
2020 Oct 19
0
Is there any way to check the class of an ALTREP?
...om/wch/r-source/blob/abb550c99b3927e5fc03d12f1a8e7593fddc04d2/src/include/Rinternals.h#L325 Den man. 19. okt. 2020 kl. 10.13 skrev Jiefei Wang <szwjf08 at 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? > > Thanks, > Jiefei > > [[alternative HTML version deleted]] > > _____________...
2020 Oct 19
0
Is there any way to check the class of an ALTREP?
...c/include/Rinternals.h#L325 > > > > Den man. 19. okt. 2020 kl. 10.13 skrev Jiefei Wang <szwjf08 at 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? > >> > >> Thanks, > >> Jiefei > >> > >>...