[R] allocating memory in C, not in R

Sundar Dorai-Raj sundar.dorai-raj at PDF.COM
Wed Sep 1 23:11:26 CEST 2004

S. Blay wrote:
> Dear R helpers,
> I need to retrieve several vectors of various types from a call 
> to .C(), but I don't know their length in advance. 
> Is there a way to do this without allocating an excessive amount 
> of memory? 
> If so, an example would be very helpful.

You should probably use the .Call interface instead of .C in this case.


More information about the R-help mailing list