[R] How to stop buffering of "cat"

Charles C. Berry cberry at tajo.ucsd.edu
Wed Apr 30 21:56:29 CEST 2008


On Wed, 30 Apr 2008, Vidhu Choudhary wrote:

> 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

By reading the R for Windows FAQ??

7.1 When using Rgui the output to the console seems to be delayed.

>
> Thank you
> Vidhu
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



More information about the R-help mailing list