onGarbageCollect
From R.utils v2.10.1
by Henrik Bengtsson
Registers a function to be called when the R garbage collector is (detected to be) running
Registers a function to be called when the R garbage collector is (detected to be) running.
- Keywords
- programming
Usage
# S3 method for default
onGarbageCollect(fcn, action=c("prepend", "append", "replace"), ...)
Arguments
Value
Returns (invisibly) the hooks successfully called.
Examples
# NOT RUN {
onGarbageCollect(function(...) {
message("The R garbage collector is running!")
})
# }
Community examples
Looks like there are no examples yet.