[Rd] using C code to create data frame but always return as list

Romain François romain at r-enthusiasts.com
Tue Jun 24 15:14:53 CEST 2014


Le 24 juin 2014 à 14:58, Simon Urbanek <simon.urbanek at r-project.org> a écrit :

> On Jun 24, 2014, at 9:21 AM, Romain Francois <romain at r-enthusiasts.com> wrote:
> 
>> Hi, 
>> 
>> Can you give us what str on the returned object gives you? 
>> 
>> I think you need : 
>> 
>> SET_OBJECT(and, 1) ; 
>> 
>> at the end. 
>> 
> 
> SET_OBJECT should not be used by user code in normal circumstances, it is set by R automatically as part of the handling of the "class" attribute.

Ah ok, thanks. I vaguely recall that I had to use it at some point, perhaps in conjunction with a direct SET_ATTRIB call, but I guess I’m not supposed to use this either. 

Romain


More information about the R-devel mailing list