From felix at nfrac.org  Fri Jan 16 07:07:43 2009
From: felix at nfrac.org (Felix Andrews)
Date: Fri, 16 Jan 2009 17:07:43 +1100
Subject: [Rd] interrupting R from a GUI
Message-ID: <94730b8a0901152207n4499c4e3n4352840334f025eb@mail.gmail.com>

list(...),

I am looking for a way to interrupt R from a callback: specifically,
to interrupt plotting (typically on a cairoDevice, but would be good
if it worked with other devices too). Of course, one can interrupt R
nicely from the console with Ctrl-C (or Esc in Rgui), but I need to do
it from a GUI. Callbacks run in a new thread, so obviously stop() etc
will not work. I tried to look into how Rgui does it...
https://svn.r-project.org/R/trunk/src/gnuwin32/psignal.c
?...but it is beyond me.

Alternatively, might there be a way to tell the cairoDevice widget to
stop drawing, somehow?

Any help would be appreciated.

-Felix

-- 
Felix Andrews / ???
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8



[Rd] interrupting R from a GUI
Felix Andrews