[R] Tk force refresh
p.dalgaard at biostat.ku.dk
Mon Jul 5 16:20:19 CEST 2004
Mark White <mjw at celos.net> writes:
> I'm trying to use a Tk widget to show some progress &
> intermediate results in a long-running R calculation.
> 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)
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help