addFinalizer | R Documentation |
This function registers a native finalizer with the specified external pointer. This routine is then invoked when the object is garbage collected. This allows us to free resources and memory associated with this object.
addFinalizer(obj, finalizer, default = character(), ...)
obj |
the object to which the finalizer is to be associated. |
finalizer |
the routine that is to be called when the |
default |
the finalizer object |
... |
additional arguments passed to methods |
A logical value indicating whether the finalizer was registered.
Duncan Temple Lang
Writing R Extensions Manual.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.