Skip to content

Force R to process all pending x11 events?

1 message · Matthias Burger

#
Dear R users,

i've written an interactive R programm that uses the tcl package for
user interaction and the usual R windows for graphical output.
Unfortunately these windows can not be resized as long as R is running
or the tcl event loop runs.

Is there a way to force R to process the X11 event loop ?

My event loop could then look like this:

while(!stop) {
  .Tcl("set EventTimer 0")
  .Tcl("after 20 {set EventTimer 1}")
  .Tcl("vwait EventTimer")          # process tcl events
  PROCESS.ALL.PENDING.X11.EVENTS()  # process x11 events ???
}

Is there something like the PROCESS.ALL.PENDING.X11.EVENTS() function?


Ciao
  Fabian