In addition to what others have pointed to regaurding buffering and cat, there are also a couple of new functions in R 2.7.0 that help with showing the progress of computations. They are winProgressBar (windows only) and TkProgressBar (in the tcltk package). You can use these to create and update a progress bar showing how far along you are. They also have options for labels and titles that you can use to show specific messages (or just percent finished). I prefer these to cat statements because you can make the window go away and don't have the messages from cat cluttering your output.
Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare [EMAIL PROTECTED] (801) 408-8111 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Vidhu Choudhary > Sent: Wednesday, April 30, 2008 1:36 PM > To: r-help@r-project.org > Subject: [R] How to stop buffering of "cat" > > Hi All, > My R code takes very long time to finish the processing. I > want to see at what stage the script is running. So I wrote > some output messages using cat. > But instead of displaying the cat messages at different > stages they are buffered and displayed in the end when entire > processing is done. > Can you please suggest how to stop this buffering or some > alternative way to display messages > > Thank you > Vidhu > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.