From zhou.zfang at gmail.com  Thu Mar 12 18:45:39 2009
From: zhou.zfang at gmail.com (Zhou Fang)
Date: Thu, 12 Mar 2009 17:45:39 +0000
Subject: [Rd] How does R handle interrupts?
Message-ID: <b19557450903121045n35841c10s530e4ba4dce82cf1@mail.gmail.com>

Hi,

I wonder if anyone can clear some things up for me to help me read the
R source code.

Suppose R receives SIGINT whilst processing R code... Where is that
handled? What gets called?

If you have R >source a script, where is that script stored? How does
R keep track of where it is in the script?

My overall goal is to find out if there's a way somehow so that on a
signal, R could be made to modify, possibly temporarily the script it
is currently executing in an useful way, by, say, inserting
'browser()' at the next convenient point, or running an user-set
function, or something. Unless there's some reason why allowing this
is a very bad idea?

Thanks for any help that can be provided.

Zhou Fang



[Rd] How does R handle interrupts?
Zhou Fang