Hello,
This is explained in Writing R Extensions, Section 6.1 file R-exts.pdf
in your distribution of R, folder doc.
There are two types of functions to allocate memory in C functions
called from R code.
1. R_alloc() - the memory is automatically reclaimed at the end of the
function call.
2.
Hi ,
I am a newbie to R and i am trying to create a R package which is pretty
main memory intensive.
I would like to know what happens to the variables allocated in the C code
while writing R extensions based on C.
Are they preserved until someone de-allocate them or are they taken out by
R's garb