onGarbageCollect {R.utils} | 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)