From hb at stat.berkeley.edu  Sat Nov 28 14:45:04 2009
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Sat, 28 Nov 2009 14:45:04 +0100
Subject: [Rd] Sending signals to current R process from R running under
	MS Windows (c.f. Esc)
In-Reply-To: <41051bff0911280154l44718df5wf7bb373fa0be9579@mail.gmail.com>
References: <41051bff0911280154l44718df5wf7bb373fa0be9579@mail.gmail.com>
Message-ID: <59d7961d0911280545o581c0d2dr7c9280662de934e8@mail.gmail.com>

Hi,

here is some discussion/information in the same vein:

(1) R-help thread '[R] The R "fork"', March 18, 2006:

  https://stat.ethz.ch/pipermail/r-help/2006-March/101913.html

(2) R-devel thread '[Rd] New simpleExit() condition (Was: Re: Can
example() code stop the example without generating an error?)', March
14-16, 2006:

  https://stat.ethz.ch/pipermail/r-devel/2006-March/036861.html

(3) Regarding sending SIGINT on Windows, I posted the following
question (without replies): 'Fix Unix' thread 'Sending/generating
SIGINT to process', Oct 1, 2007:

 http://fixunix.com/microsoft-windows/30232-sending-generating-sigint-process.html

/Henrik

On Sat, Nov 28, 2009 at 10:54 AM, Graham Williams
<Graham.Williams at togaware.com> wrote:
> I am using RGtk2 for a simple GUI (rattle).
>
> I start rattle from the RGui and I remain able to interact with the
> RGui while rattle runs.
>
> Under MS/Windows, when rattle has initiated some other underlying R
> command the rattle GUI remains responsive (unlike under GNU/Linux
> where it is not responsive until the underlying command completes).
>
> I can interrupt the running command with a press of the Esc key in the RGui.
>
> I want to have a button on the rattle GUI to run an R command to have
> the same behavior as pressing the Esc key in the RGui. I currently
> have a button in rattle as an example that will run another R command
> whilst the original R command is still running.
>
> Looking at the C source code for the RGui it looks like it is sending
> a SIGBREAK signal to the R process.
>
> Is this possible to do, somehow, from R?
>
> Thanks,
> Graham
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Sending signals to current R process from R running under MS Windows (c.f. Esc)
Henrik Bengtsson