Displaying 7 results from an estimated 7 matches for "r_altrep_class_t".
2018 Oct 08
4
R_ext/Altrep.h should be more C++-friendly
...de "R_ext/Altrep.h" from a C++ file. I think
it needs two changes:
1. add the same __cplusplus check as most of the other header files:
#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif
2. change the line
R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
to
R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2);
since C++ doesn't like an argument named 'class'
~~ Michael Sannella
[[alternative HTML version deleted]]
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
1
Is there any way to check the class of an ALTREP?
...any 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 to...
2020 Oct 19
2
Is there any way to check the class of an ALTREP?
...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]]
>>
>> ______________________________________________
>> R-dev...
2018 Oct 09
0
R_ext/Altrep.h should be more C++-friendly
...needs two changes:
>
> 1. add the same __cplusplus check as most of the other header files:
> #ifdef __cplusplus
> extern "C" {
> #endif
> ...
> #ifdef __cplusplus
> }
> #endif
>
> 2. change the line
> R_new_altrep(R_altrep_class_t class, SEXP data1, SEXP data2);
> to
> R_new_altrep(R_altrep_class_t cls, SEXP data1, SEXP data2);
> since C++ doesn't like an argument named 'class'
>
> ~~ Michael Sannella
>
> [[alternative HTML version deleted]]
>
> _________________________...
2020 Oct 19
0
Is there any way to check the class of an ALTREP?
...ternals.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]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
>...
2020 Oct 19
0
Is there any way to check the class of an ALTREP?
...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]]
> >>
> >> _____________________...