NOT YET SOLVED: Re: [R] Error in postscript(....)

Peter Dalgaard BSA p.dalgaard at
Wed Jan 24 17:58:02 CET 2001

Marcus Eger <marcus.eger at> writes:

> Is there a way to circumvent the problem or to solve it? I'd be very
> glad to find a solution...
>    M. Eger

I'm still at a loss trying to explain how postscript() triggers an X11
error, but...

You might try to change (in devX11.c)

static int R_X11IOErr(Display *dsp)
    error("X11 fatal IO error: please save work and shut down R");
    return 0; /* but should never get here */

by inserting code that unregisters the X11 input handler, i.e.

int fd = ConnectionNumber(display);

and similarly in dataentry.c.

(BTW, I forget, did you try running under the debugger and see whether
it is the code in devX11.c or in dataentry.c that tickles this?)

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at             FAX: (+45) 35327907
r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at

More information about the R-help mailing list