onGarbageCollect
From R.utils v1.4.2
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 class 'default':
onGarbageCollect(fcn, action=c("prepend", "append", "replace"), ...)
Arguments
Value
- Returns (invisibly) the hooks successfully called.
Examples
onGarbageCollect(function(...) {
cat("The R garbage collector is running!\n");
})
Community examples
Looks like there are no examples yet.