Radford Neal
2013-Nov-06 17:00 UTC
[Rd] Dynamic list creation (SEXP in C) returns error "unimplemented type (29) in 'duplicate'" Dynamic list creation (SEXP in C) returns error
"changing its size using SETLENGTH (Rf_lengthgets)" NO! NO! NO! SETLENGTH does not do the same thing as Rf_lengthgets. You should never use SETLENGTH, which is not part of the API, and really should not even exist. For that matter Rf_lengthgets is also not part of the API. I recommend getting the length right to start with. Radford Neal
George Vega Yon
2013-Nov-06 17:40 UTC
[Rd] Dynamic list creation (SEXP in C) returns error "unimplemented type (29) in 'duplicate'" Dynamic list creation (SEXP in C) returns error
Hi! You are right, what I actually use is SET_LENGTH... Is that ok? El 06/11/2013 14:00, "Radford Neal" <radford@cs.toronto.edu> escribió:> "changing its size using SETLENGTH (Rf_lengthgets)" > > NO! NO! NO! SETLENGTH does not do the same thing as Rf_lengthgets. > You should never use SETLENGTH, which is not part of the API, and > really should not even exist. > > For that matter Rf_lengthgets is also not part of the API. I > recommend getting the length right to start with. > > Radford Neal >[[alternative HTML version deleted]]