Re: [Rd] print() from within a function - Windows specific? (PR#7584)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Sat 29 Jan 2005 - 06:19:50 EST

markus.liedgens@ipw.agrl.ethz.ch writes:

> To control the progress of a function one can consider to use print() to issue a
> message in the command window. However, using Win98 / R 1.9 or WinXP / R 2.0,
> this approach is of little usefulness, since all the print() commands are issued
> at once, just before the control returns to the command window. A test code
> could be:
>
> for(i in 1:10){
> for(j in 1:1000){
> for(k in 1:1000){}
> }
> print(i)
> }
>
> I once ask a linux / unix user and he was not able to reproduce the problem.

It IS a FAQ though...

http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-output-to-the-console-seems-to-be-delayed

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat Jan 29 05:41:34 2005

This archive was generated by hypermail 2.1.8 : Sat 29 Jan 2005 - 06:24:18 EST