Re: [Rd] sending signals to embedded R

From: Deepayan Sarkar <>
Date: Fri, 04 May 2007 15:34:48 -0700

On 5/4/07, Prof Brian Ripley <> wrote:
> On Fri, 4 May 2007, Deepayan Sarkar wrote:
> > one thing I haven't been able to figure out from R-exts is how to
> > interrupt a calculation running inside an embedded R. C code inside R
> > calls R_CheckUserInterrupt() intermittently to check for interrupts,
> > but how does my GUI tell R that the user wants it interrupted?
> Well, the intention is that you send an interrupt, which hardly needs to
> be in the manual.

I didn't mean to imply that it does. I'm just new to signals and things that should be obvious aren't.

Basically kill(2) seems to be the right thing to use, but I wasn't sure what the PID needs to be. Turns out sending SIGINT to my GUI from a shell interrupts R, so raise(SIGINT) should be enough.

-Deepayan mailing list Received on Fri 04 May 2007 - 22:37:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 May 2007 - 02:33:54 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.