Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented by any R data structures. I create a global
hashtable to keep a reference to the C++ data structures. Whenever I
allocate
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%3Acrantype=Codeutf8=%E2%9C%93
On 11/12/2014 05:36 AM, Zheng Da wrote:
Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented by any R data structures. I create a global
hashtable to keep a reference to the
Thank you, Gabor and Martin. It helps a lot.
Da
On Wed, Nov 12, 2014 at 1:20 PM, Martin Morgan mtmor...@fredhutch.org wrote:
On 11/12/2014 05:36 AM, Zheng Da wrote:
Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own
On Wed, Nov 12, 2014 at 10:20 AM, Martin Morgan mtmor...@fredhutch.org wrote:
On 11/12/2014 05:36 AM, Zheng Da wrote:
Hello,
I wrote a system to perform data analysis in C++. Now I am integrating
it to R. I need to allocate memory for my own C++ data structures,
which can't be represented