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

From: <andy_liaw_at_merck.com>
Date: Sat 29 Jan 2005 - 06:17:05 EST


It really pays to RTFM sometimes:=20
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

>=20

> Full_Name: Markus Liedgens
> Version: Ever since 1.6
> OS: Windows 98 / Windows Xp
> Submission from: (NULL) (81.63.111.226)
>=20
>=20

> To control the progress of a function one can consider to use=20
> print() to issue a
> message in the command window. However, using Win98 / R 1.9=20
> or WinXP / R 2.0,
> this approach is of little usefulness, since all the print()=20
> commands are issued
> at once, just before the control returns to the command=20
> window. A test code
> could be:
>=20

> for(i in 1:10){
> for(j in 1:1000){
> for(k in 1:1000){}
> }
> print(i)
> }
>=20

> I once ask a linux / unix user and he was not able to=20
> reproduce the problem.
>=20

> Best regards
>=20

> -------------------------------------------------
> Markus Liedgens
> Institut f=FCr Pflanzenwissenschaften - ETH Z=FCrich
> FEL Eschikon 33
> 8315 Lidau, Switzerland
> e-mail: markus.liedgens@ipw.agrl.ethz.ch
> --------------------------------------------------
> 8315 Lindau
>=20

> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>=20
>=20
---------------------------------------------------------------------------=
---
Notice:  This e-mail message, together with any attachments,...{{dropped}}

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

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