AW: [R] Tracking progress during iterations
Dear Lin, One bad solution: You can only (???) display it, when you click on another Window (eg. the explorer) and then once again on the R window or by clicking on the menu bar in R and second on the R window. In this way you can "refresh" the display and you can see in which iteration step you are. You can check this on the dummy example below: k <- rnorm(400) for (i in 1:10){ print(paste("Step ",i))# k1 <- sort(k) } I donĀ“t know, if there is another (better) way to refresh the R window... Best, Matthias > Dear all, > I am using R 2.1.0 for Windows on XP SP2. > In a loop such as below, we can track the progress by a > screen print display as below (in S): > > for (i in 1:10){ > print(paste("Starting simulation run no...",i)) > > result<-c(result,mean(data)) #A dummy example of the > simulation to be done > > } > > In S-plus environment, the statements > > Starting simulation run no...1 > Starting simulation run no...2 > . > . > . > etc., > > are displayed as the loop is running. However, > in R, they are displayed only after the loop is completed. > Is there anyway to 'make it' appear as the loop is running? > > Thanks in advance. > Best > Lin > [[alternative HTML version deleted]] > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read > the posting guide! http://www.R-project.org/posting-guide.html > __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Tracking progress during iterations
take a look at rw-FAQ 6.13 I hope it helps. Best, Dimitris Dimitris Rizopoulos Ph.D. Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/16/336899 Fax: +32/16/337015 Web: http://www.med.kuleuven.ac.be/biostat/ http://www.student.kuleuven.ac.be/~m0390867/dimitris.htm - Original Message - From: "Dr L. Y Hin" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 24, 2005 1:31 PM Subject: [R] Tracking progress during iterations Dear all, I am using R 2.1.0 for Windows on XP SP2. In a loop such as below, we can track the progress by a screen print display as below (in S): for (i in 1:10){ print(paste("Starting simulation run no...",i)) result<-c(result,mean(data)) #A dummy example of the simulation to be done } In S-plus environment, the statements Starting simulation run no...1 Starting simulation run no...2 . . . etc., are displayed as the loop is running. However, in R, they are displayed only after the loop is completed. Is there anyway to 'make it' appear as the loop is running? Thanks in advance. Best Lin [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Tracking progress during iterations
On 5/24/05, Dr L. Y Hin <[EMAIL PROTECTED]> wrote: > Dear all, > I am using R 2.1.0 for Windows on XP SP2. > In a loop such as below, we can track the progress by a screen print display > as > below (in S): > > for (i in 1:10){ > print(paste("Starting simulation run no...",i)) > >result<-c(result,mean(data)) #A dummy example of the simulation to be done > > } > > In S-plus environment, the statements > > Starting simulation run no...1 > Starting simulation run no...2 > . > . > . > etc., > > are displayed as the loop is running. However, > in R, they are displayed only after the loop is completed. > Is there anyway to 'make it' appear as the loop is running? > See 6.3 of the R Windows FAQ: http://cran.r-project.org/bin/windows/base/rw-FAQ.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Tracking progress during iterations
Dear all, I am using R 2.1.0 for Windows on XP SP2. In a loop such as below, we can track the progress by a screen print display as below (in S): for (i in 1:10){ print(paste("Starting simulation run no...",i)) result<-c(result,mean(data)) #A dummy example of the simulation to be done } In S-plus environment, the statements Starting simulation run no...1 Starting simulation run no...2 . . . etc., are displayed as the loop is running. However, in R, they are displayed only after the loop is completed. Is there anyway to 'make it' appear as the loop is running? Thanks in advance. Best Lin [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html