Re: [R] Tk force refresh

From: Mark White <mjw_at_celos.net>
Date: Tue 06 Jul 2004 - 01:24:18 EST

Peter Dalgaard writes:
> Mark White <mjw@celos.net> writes:
> > Does anybody know how (or whether) I can force a window
> > redraw without waiting for the idle loop? Currently,
> > refreshes only seem to happen when we return to the R
> > toplevel read-eval-print loop.
>
> I think it's tkcmd("update") or tkcmd("update", "idletasks"). In
> general the advise seems to be to use the latter form if you can,
> since there there can be some nasty reentrancy issues with the former.
> (I forgot where I saw the description of exactly what can go wrong;
> possibly, it was on wiki.tcl.dk)

Thank you: that solves the problem nicely. It turns out the second one only redraws things which have been changed; so it runs a little faster, too.

Mark <><



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jul 06 01:14:47 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:43 EST