indexDemoOpen creates an external pointer pointing to an integer vector of length n,
indexDemoClose frees the memory linked to the pointer.
the external pointer returned by
the length of the vector stored in C RAM
If the returned pointer is removed finalization happens at the next
indexDemoClose is used on the pointer then finalization happens immediately, if the pointer is then removed, the finalizer is called again at the next
gc() (but doesn't finalize again).
indexDemoOpen returns an external pointer,
indexDemoClose returns the integer vector previously linked by the pointer.
R Development Core Team (2007). Writing R Extensions.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.