Re: [R] signal handling

From: Duncan Murdoch <>
Date: Fri 12 Aug 2005 - 10:10:05 EST

Omar Lakkis wrote:
> Is ther a signal handling model in R? similar to Perl's %SIG hash.
> I want to do fast clean up in my R code before exit when a kill signal
> is issued.

I don't know Perl's %SIG hash. However, there are several things you can do: the on.exit() function lets a function do cleanup, and there are various hooks available (see ?setHook), and finalizers (see ?reg.finalizer) for some kinds of objects.

Duncan Murdoch mailing list PLEASE do read the posting guide! Received on Fri Aug 12 10:15:09 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:15:35 EST