"Gilda Garibotti" <[EMAIL PROTECTED]> 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 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help