Monty B.
2006-Apr-03 15:51 UTC
[R] Delayed output from print(). Help for creating status output.
Hello all, As this is my first time posting to this mailing list, I think I should thank all the people who have contributed to the project. Many man-hours have been saved on my part! My question is simple - when i run a longer simulation, I would like to be able to output the progress, typically "n% complete" at regular intervals. It seems like R batches these outputs, or only responds when i scroll the output window. I am using R 2.2.1 for windows. Any suggestions or workarounds? cheers, Monty
Thomas Lumley
2006-Apr-03 16:30 UTC
[R] Delayed output from print(). Help for creating status output.
On Mon, 3 Apr 2006, Monty B. wrote:> Hello all, > > As this is my first time posting to this mailing list, I think I > should thank all the people who have contributed to the project. Many > man-hours have been saved on my part! > > My question is simple - when i run a longer simulation, I would like > to be able to output the progress, typically "n% complete" at regular > intervals. It seems like R batches these outputs, or only responds > when i scroll the output window. > > I am using R 2.2.1 for windows. Any suggestions or workarounds?Yes, they are described in the R for Windows FAQ (question 6.3). -thomas
Michael H. Prager
2006-Apr-03 16:40 UTC
[R] Delayed output from print(). Help for creating status output.
?flush.console() on 4/3/2006 11:51 AM Monty B. said the following:> Hello all, > > As this is my first time posting to this mailing list, I think I > should thank all the people who have contributed to the project. Many > man-hours have been saved on my part! > > My question is simple - when i run a longer simulation, I would like > to be able to output the progress, typically "n% complete" at regular > intervals. It seems like R batches these outputs, or only responds > when i scroll the output window. > > I am using R 2.2.1 for windows. Any suggestions or workarounds? > > cheers, > Monty > > ______________________________________________ > R-help at 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 >-- Michael Prager, Ph.D. Population Dynamics Team, NMFS SE Fisheries Science Center NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ Opinions expressed are personal, not official. No government endorsement of any product is made or implied.
Monty B.
2006-Apr-03 16:51 UTC
[R] Delayed output from print(). Help for creating status output.
On 4/3/06, Thomas Lumley <tlumley at u.washington.edu> wrote:> On Mon, 3 Apr 2006, Monty B. wrote: > > Hello all, > > > > As this is my first time posting to this mailing list, I think I > > should thank all the people who have contributed to the project. Many > > man-hours have been saved on my part! > > > > My question is simple - when i run a longer simulation, I would like > > to be able to output the progress, typically "n% complete" at regular > > intervals. It seems like R batches these outputs, or only responds > > when i scroll the output window. > > > > I am using R 2.2.1 for windows. Any suggestions or workarounds? > > Yes, they are described in the R for Windows FAQ (question 6.3). > > -thomas >Thanks both thomas and michael. I checked the faq linked to at the r-help mailing list: http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html, but to no avail. I will check the windows faq as well next time. cheers, Monty