Displaying 7 results from an estimated 7 matches for "setwinprogressbar".
2010 Feb 10
1
R crashes when setWinProgressBar is give a numeric value for label argument
This problem can be seen by the following commands:
> pb <- winProgressBar(max=1000, label='0')
> b <- 1
> setWinProgressBar(pb, b, label=b)
This set of commands (on windows of course, XP in this case) causes R to crash.
This is not strictly a bug since the documentation states that the label argument should be a character string and using as.character(b) does work properly. But when I (and possibly others) forget thi...
2008 May 09
1
getWinProgressBar does not return previous value
I am trying to use winProgressBar, however I find that although
setWinProgressBar updates the 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 <- tkProgre...
2013 Feb 12
3
improving/speeding up a very large, slow simulation
...t;- winProgressBar(title="Create base, big loop 1 of 2", label="0% done",
min=0, max=100, initial=0)
for (i in 1:combinations) {
base[index[i,1]:index[i,2],1:permut.col] <- permut.grid[i,]
#progress bar
info <- sprintf("%d%% done", round((i/combinations)*100))
setWinProgressBar(pb, (i/combinations)*100, label=info)
}
close(pb)
# now, simply feed the values replicated the number of times we want to run
the simulation into the sequential.unpaired function, and assign the values
to the appropriate columns
out.index1<-ncol(permut.grid)+1
out.index2<-ncol(permut.grid)...
2016 Apr 12
2
Procesos paralelos
...#Calculamos porcentaje de registros subidos en el momento
porcen <- as.numeric((total - entabla) / asubir)
#Actualizamos barra de progreso
setWinProgressBar(barra, porcen,title="SUBIENDO DATOS A SQL", label =paste("Subido el: ", round(porcen *100,0), "% de los datos. Quedan por subir ",(entabla + asubir)-total, " registros de ", asubir, "." , sep=""))...
2016 Apr 12
2
Procesos paralelos
...lculamos porcentaje de registros subidos en el momento
> porcen <- as.numeric((total - entabla) / asubir)
>
> #Actualizamos barra de progreso
> setWinProgressBar(barra, porcen,title="SUBIENDO DATOS A SQL", label =paste("Subido el: ", round(porcen *100,0), "% de los datos. Quedan por subir ",(entabla + asubir)-total, " registros de ", asubir, "." , sep=""))
>
>...
2016 Apr 12
2
Procesos paralelos
...mos porcentaje de registros subidos en el
> momento
> > porcen <-
> > as.numeric((total - entabla) / asubir)
> >
> > #Actualizamos barra de progreso
> >
> > setWinProgressBar(barra, porcen,title="SUBIENDO DATOS A SQL", label
> > =paste("Subido el: ", round(porcen *100,0), "% de los datos. Quedan
> > por subir ",(entabla + asubir)-total, " registros de ", asubir, "." ,
> > sep=""))
> &g...
2013 May 09
0
Barra de progreso en RODBC
...el nº de registros que hay en la tabla en ese
#momento
porcen <- as.numeric((total -
entabla) / asubir) #Calculamos porcentaje de registros subidos del total a
subir
setWinProgressBar(barra,
porcen,title="SUBIENDO DATOS A SQL", #Actualizamos la
barra de progreso con la
label
=paste("Subido el: ", round(porcen *100,0), "% de los datos. #la
información obtenida y calculada...