Message-ID: <42FBE8DD.4050905@stats.uwo.ca>
Date: 2005-08-12T00:10:05Z
From: Duncan Murdoch
Subject: signal handling
In-Reply-To: <3f87cc6d050811142082b87d6@mail.gmail.com>
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