Skip to content
Prev 27837 / 63424 Next

SEXP size management.

Rblah in your example is a SEXP structure. Realloc is an interface to C 
realloc and is not intended to resize SEXP structures -- it is used to 
resize user-controlled memory (which is generally not created by 
allocVector/INTEGER).

You would expect a call like:

int * val;
...
Realloc(val, 20, int);

Best,
Oleg
Charles Danko wrote: