[R] (no subject)
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Jun 4 00:08:38 CEST 2003
"Gilda Garibotti" <gilda.garibotti at hci.utah.edu> writes:
> Hi,
> I would like to know if it is possible to get printed output while a loop is taking place.
> Example:
> for(i in 1:10){
> print(i)
> some long process
> }
>
> This will print the values of i only after the loop is finished, what I would like is to
> see them when the process enters the i-th iteration to keep track of how the
> program is running.
Windows, right? (This is system dependent) There's a menu item
entitled "Buffer output" or something to that effect. Turn it off and
print() calls display immediately. Lengthy output becomes slower,
though.
--
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
mailing list