Displaying 6 results from an estimated 6 matches for "settkprogressbar".
2008 May 09
1
getWinProgressBar does not return previous value
...value on the screen, getWinProgressBar does
not return this value.
E.g
> pb <- winProgressBar()
> setWinProgressBar(pb, 0.2)
> getWinProgressBar(pb)
[1] 0
I tried the same with tkProgressBar, and it is working as I would expect
from the documentation.
> pb <- tkProgressBar()
> setTkProgressBar(pb, 0.5)
> getTkProgressBar(pb)
[1] 0.5
... and I get the same result using txtProgressBar .
Does anyone using winProgressBar find the same behaviour, or know the reason
for it? A search for "winProgressBar" in R-help archive did not reveal
anything, I believe it is a new function to...
2013 Jun 19
2
Barra de progreso
...1:total){
Sys.sleep(0.1)
# update progress bar
setTxtProgressBar(pb, i)
}
close(pb)
library(tcltk)
total <- 20
# create progress bar
pb <- tkProgressBar(title = "progress bar", min = 0,
max = total, width = 300)
for(i in 1:total){
Sys.sleep(0.1)
setTkProgressBar(pb, i, label=paste( round(i/total*100, 0),
"% done"))
}
close(pb)
sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Spanish_Argentina.1252 LC_CTYPE=Spanish_Argentina.1252
[3] LC_MONETAR...
2013 Jun 18
3
Barra de progreso
Buenas tardes:
¿Cuál es el modo más adecuado de incorporar una barra de progreso en la ventana de comandos?. Es para acompañar a un proceso de lectura de ficheros de datos...
Necesitaba que la solución fuese multiplataforma.
Gracias.
Un saludo.
Eva
[[alternative HTML version deleted]]
2013 Jun 20
1
Barra de progreso
...r
> setTxtProgressBar(pb, i)
>}
>close(pb)
>
>library(tcltk)
>total <- 20
># create progress bar
>pb <- tkProgressBar(title = "progress bar", min = 0,
> max = total, width = 300)
>
>for(i in 1:total){
> Sys.sleep(0.1)
> setTkProgressBar(pb, i, label=paste( round(i/total*100, 0),
> "% done"))
>}
>close(pb)
>
>sessionInfo()
>
>R version 3.0.1 (2013-05-16)
>Platform: i386-w64-mingw32/i386 (32-bit)
>
>locale:
>[1] LC_COLLATE=Spanish_Argentina.1252 LC_CT...
2013 Jun 18
0
Barra de progreso
...1:total){
Sys.sleep(0.1)
# update progress bar
setTxtProgressBar(pb, i)
}
close(pb)
library(tcltk)
total <- 20
# create progress bar
pb <- tkProgressBar(title = "progress bar", min = 0,
max = total, width = 300)
for(i in 1:total){
Sys.sleep(0.1)
setTkProgressBar(pb, i, label=paste( round(i/total*100, 0),
"% done"))
}
close(pb)
sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: i386-w64-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Spanish_Argentina.1252 LC_CTYPE=Spanish_Argentina.1252
[3] LC_MONETARY=S...
2013 Jun 19
0
Barra de progreso
...etTxtProgressBar(pb, i)
> }
> close(pb)
>
> library(tcltk)
> total <- 20
> # create progress bar
> pb <- tkProgressBar(title = "progress bar", min = 0,
> max = total, width = 300)
>
> for(i in 1:total){
> Sys.sleep(0.1)
> setTkProgressBar(pb, i, label=paste( round(i/total*100, 0),
> "% done"))
> }
> close(pb)
>
> sessionInfo()
>
> R version 3.0.1 (2013-05-16)
> Platform: i386-w64-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=Spanish_Argentina.125...