[Rd] hook for when R quits

Michael Lawrence
Fri, 11 Mar 2011 18:08:01 -0000

Hi,

Is there any way that a package can listen for when R quits? The Qt stuff is
hooking into platform-specific event loops and when those die unexpectedly
(from the perspective of Qt), it aborts, causing an annoying error dialog.
If we could catch when R is killed, we could cleanup, like we do with
.onUnload.

Thanks,
Michael

	[[alternative HTML version deleted]]