[R] R Progress Bar

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu Feb 27 02:07:51 CET 2014


I ran the example code in the winProgressBar help file and it ran in normal display mode (not minimized).

Have you run your code in RGui? Those other tools may be affecting winProgressBar.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On February 26, 2014 9:24:35 AM PST, slomanl1 <lsloman at sjm.com> wrote:
>I am running Windows 7 64bit. Running a script on Revolution R or R
>Studio
>(the behavior is the same.) The sample script reproduces the problem:
>
>pb <- winProgressBar("test progress bar", "Some information in %",
>                     0, 100, 50)
>Sys.sleep(0.5)
>u <- c(0, sort(runif(20, 0, 100)), 100)
>for(i in u) {
>    Sys.sleep(0.1)
>    info <- sprintf("%d%% done", round(i))
>    setWinProgressBar(pb, i, sprintf("test (%s)", info), info)
>}
>Sys.sleep(5)
>close(pb)
>
>Also, tkProgressBar() behaves the same. 
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/R-Progress-Bar-tp4685847p4685875.html
>Sent from the R help mailing list archive at Nabble.com.
>
>______________________________________________
>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.




More information about the R-help mailing list