[Rd] Re: Embedded R and x11

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Apr 20 19:12:58 CEST 2005

Hi again,

> I figured that the reason for this might be, that R_ProcessEvents () and
> handleEvent () in devX11.c do not get called (of course I might be
> completely wrong?). So I tried calling R_ProcessEvents () manually, but I
> can't get that to link (unresolved symbol R_ProcessEvents).
> Any hints on how I can get this to work?

ok, I figured it out. For the record, the following code (called periodically 
when there is nothing else to do) does the trick:

#include "R_ext/eventloop.h"

void processX11 () {
	extern InputHandler *R_InputHandlers;
	InputHandler *handler = R_InputHandlers;
	while (handler) {
		if (handler->activity == XActivity) {
			handler->handler ((void*) 0);
		handler = handler->next;


More information about the R-devel mailing list