[R] Tcl/Tk window lingering too long

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Feb 22 19:35:10 CET 2002


On Fri, 22 Feb 2002, David Firth wrote:

> I want to set up a simple Tk dialog interface to a function in R,
> such that when the "OK" button is pressed, the dialog window is
> destroyed and then R does its work on the data/parameters/whatever
> that were entered in the dialog.  The function "test" below is a
> simple prototype.
>
> My problem: upon running test() and hitting "OK", R does its work
> (ie, computes rnorm(400000) in the silly example below), and only
> *after* that does the dialog window disappear.  Is there some way to
> make sure that the window disappears immediately after hitting "OK"?
>
> I am using R and Tcl/Tk under Darwin/X11.  Exact version information
> below.  I have made similar dialogs before with a Windows version and
> my recollection is that I didn't have this problem -- is it perhaps a
> system-dependent thing?

Right: it disappears immediately on Windows.  As far as I can tell on my
fast Linux box (even across the net to my cable modem), there it has the
effect you mention.

BTW, to all those who have been saying that 1.4.1 is not easily available
on MacOS X/darwin, note the details below.

> platform powerpc-apple-darwin5.3
> arch     powerpc
> os       darwin5.3
> system   powerpc, darwin5.3
> status
> major    1
> minor    4.1
> year     2002
> month    01
> day      30
> language R


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list