Re: [R] Close Window Button Problems

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Thu, 12 Jun 2008 13:18:07 +0100 (BST)

You have failed to provide the most basic of information as requested in the posting guide. As you mention 'i create a x11 window and plot' I will assume you mean that you open an X11() device and hence this is some Unix-alike OS.

This has come up several times before, so please search the archives. If you 'popen' R, its input is not from a tty and so it is not considered to be running interactively and hence is not expecting users to interact with it (like shutting down windows).

R 2.7.0 allows a --interactive flag which may help. Exactly what the circumstances are in which the event loop is blocked seem to be system-specific. But normally if non-interactive R is reading from stdin it is completely blocked until input is completed -- and that is not usually the case if R is interactive.

Should this be Windows (which does have an x11() device), the relevant flag is --ess.

On Wed, 11 Jun 2008, damon_at_damonhouk.net wrote:

> i have created a wrapper C++ class that popen()s R. When i create a x11
> window and plot, i cannot close it using the window button. Also, when i
> minimize or maximize the window, the plot does not redraw. Can anybody
> tell me if there is a way i can get back this window functionality or if
> it is not possible?
> thank you kindly.
>
> -damon
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 12 Jun 2008 - 12:26:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 12:30:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive