Skip to content
Prev 33228 / 63424 Next

reg.finalizer(..., add=FALSE)?

On 07/07/2009 8:36 PM, Henrik Bengtsson wrote:
No, but you can have the finalizer function call something else, and 
change the thing it calls.  E.g.

reg.finalizer(env, function (...) CleanUp(...))

will call CleanUp in the global environment (the environment of the 
anonymous finalizer); change that function and the cleanup behaviour 
will change.

Duncan Murdoch