Skip to content
Prev 39420 / 63424 Next

hook for when R quits

On 11/03/2011 3:11 PM, Henrik Bengtsson wrote:
To be very conservative, I would assume that nothing in R is available 
other than things that are stored in that environment.  That's probably 
not true, but it would be safe.  This mechanism is for finalizing things 
that R doesn't know about.

If you want to be less conservative, then you could look at the source 
code:  currently R_RunExitFinalizers is the very first
part of the cleanup.  I don't know if we guarantee this though.

Duncan Murdoch