onGarbageCollect | R Documentation |
Registers a function to be called when the R garbage collector is (detected to be) running.
## Default S3 method:
onGarbageCollect(fcn, action=c("prepend", "append", "replace"), ...)
fcn |
A |
action |
A |
... |
Not used. |
Returns (invisibly) the hooks successfully called.
Henrik Bengtsson
## Not run:
onGarbageCollect(function(...) {
message("The R garbage collector is running!")
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.