Skip to content

A question about "txtProgressBar" function

3 messages · Li, Yunfei, Berend Hasselman, Greg Snow

#
Li, Yunfei wrote:
Are running your script in Mac OS X or Windows GUI?

?flush.console

Replace cat(...) with  cat("Hello\n"); flush.console()

Berend


--
View this message in context: http://r.789695.n4.nabble.com/A-question-about-txtProgressBar-function-tp3437902p3438040.html
Sent from the R help mailing list archive at Nabble.com.
9 days later
#
If your loop is producing its own output then you probably should not use txtProgressBar, but you can use either winProgressBar (if on windows) or tkProgressBar (on all platforms, but need tcltk package).  These open an additional window with the progress bar and any additional information that you want, but does not do anything in the main console.