Skip to content
Prev 49361 / 63424 Next

How to maintain memory in R extension

Hi,

I think you need external pointers:
http://cran.r-project.org/doc/manuals/r-release/R-exts.html#External-pointers-and-weak-references
The docs also has an example.

See more examples from other R packages here:
https://github.com/search?q=R_MakeExternalPtr+user%3Acran&type=Code&utf8=%E2%9C%93

Gabor
On Wed, Nov 12, 2014 at 8:36 AM, Zheng Da <zhengda1936 at gmail.com> wrote: