Re: [R] R Progress Bar

2014-02-26 Thread Greg Snow
This will probably depend greatly on which operating system you are
using and which progress bar function(s) you are using, neither of
which is clear from your message.  If you tell us what your OS is (and
possibly how you are running R, GUI, commandline, etc.) and show us
some sample code including any packages loaded, then we will have a
better chance at helping you.

On Tue, Feb 25, 2014 at 5:37 PM, slomanl1 lslo...@sjm.com wrote:
 When I run my script, the progress bar is always minimized, and I have to
 manually click on it to be visible. Does anyone know how to put an R
 progress bar on top once it is created?



 --
 View this message in context: 
 http://r.789695.n4.nabble.com/R-Progress-Bar-tp4685847.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

__
R-help@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.


Re: [R] R Progress Bar

2014-02-26 Thread slomanl1
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@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.


Re: [R] R Progress Bar

2014-02-26 Thread Jeff Newmiller
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 NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.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 lslo...@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@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.

__
R-help@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.


[R] R Progress Bar

2014-02-25 Thread slomanl1
When I run my script, the progress bar is always minimized, and I have to
manually click on it to be visible. Does anyone know how to put an R
progress bar on top once it is created?



--
View this message in context: 
http://r.789695.n4.nabble.com/R-Progress-Bar-tp4685847.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.