Skip to content

txtProgressBar examples?

6 messages · Scott Chamberlain, Laurent Gatto, Mario Valle +2 more

#
Did you try running the examples on the help page ?txtProgressBar ?

Basically the txtProgressBar command creates the progress bar, then in the loop the setTxtProgressBar command updates the amount of progress for that bar.
#
'R: Monitoring the function progress with a progress bar' [1] might b helpful.

Laurent

[1] http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/
On 14 February 2011 18:32, Scott Chamberlain <myrmecocystus at gmail.com> wrote:
#
Nice reference!

I'm on  Win 7 32 bits 2.12.0
and the first example fills the R console with ideograms and strange 
characters just by doing:
pb <- txtProgressBar(min = 0, max = 20, style = 3)
Bug or feature?

BTW the rest of the example works, as the whole example works on Linux.
Ciao!
                     mario
On 15-Feb-11 13:41, Laurent Gatto wrote:

  
    
#
Dear Mario,

See: http://www.mail-archive.com/r-help at r-project.org/msg117622.html

This seems to be fixed in version 2.12.1 (at least, I do not get this problem anymore).

Best,

Wolfgang
#
When using the windows gui I prefer the winProgressBar to the txtProgressBar.  It works basically the same, but does not put any characters into the terminal.  (there is also tkProgressBar that works on all platforms, but requires the tcltk package).