Skip to content
Prev 24054 / 63424 Next

Checking for user interrupt in a .C() call without without triggering a non-local exit.

On Mon, 26 Feb 2007, Pavel N. Krivitsky wrote:

            
Not really.  There is an internal mechanism for registering C level
on.exit routines but this is not in a form that can be made public as
it would tie down implementation decisions too much.  It is principle
possible to build something around R_ToplevelExec, but that is not at
this point part of the public API and so is subject to change.  We
might consider providing something along these lines after 2.5 is
released.  A tricky issues is that while checking for interrupts is
cheap on standard Unix setups where interrupts arrive as signals, it
isn't in GUI setups where event processing is needed to detect whether
a user interrupt action has occurred (and that checking could cause
errors and non-local exits).

Best,

luke