From andy_liaw at merck.com  Fri Jan 28 20:16:40 2005
From: andy_liaw at merck.com (Liaw, Andy)
Date: Fri Jan 28 20:17:11 2005
Subject: [Rd] print() from within a function - Windows specific? (
	PR# 7584)
Message-ID: <3A822319EB35174CA3714066D590DCD50994E5EA@usrymx25.merck.com>

It really pays to RTFM sometimes: 
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#The-output-to-the-con
sole-seems-to-be-delayed

Andy

> From: markus.liedgens@ipw.agrl.ethz.ch
> 
> Full_Name: Markus Liedgens
> Version: Ever since 1.6
> OS: Windows 98 / Windows Xp
> Submission from: (NULL) (81.63.111.226)
> 
> 
> 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.
> 
> Best regards
> 
> -------------------------------------------------
> Markus Liedgens
> Institut f?r Pflanzenwissenschaften - ETH Z?rich
> FEL Eschikon 33
> 8315 Lidau, Switzerland
> e-mail: markus.liedgens@ipw.agrl.ethz.ch
> --------------------------------------------------
> 8315 Lindau
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
>


[Rd] print() from within a function - Windows specific? ( PR# 7584)
Liaw, Andy