[R] Show Progress in loop
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Oct 10 12:48:56 CEST 2005
On Mon, 10 Oct 2005, Philippe Grosjean wrote:
> Hello,
>
> You must explicitly use print(), show() on an object -here, use
> print(i)- in a loop or alternatively, use cat() to display string like:
> cat("loop", i, "\n")
>
> With RGui under Windows, there is another subtility: if you have turn on
> 'Misc -> Buffered output' (it is ON by default), all output are delayed
> until the end of the command processing. You need to use flush.console()
> to tell to print i immediatelly within a loop. The best synthax is
> (since the command is only usable under Windows):
Not so: all systems have it. It is also useful on MacOS X. All this is
on the help page.
This is in the rw-FAQ: it seems we have lost the convention of not
answering FAQs but referring people to the appropriate FAQ.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list