search for: txtprogressbar

Displaying 20 results from an estimated 25 matches for "txtprogressbar".

2011 Apr 09
2
A question about "txtProgressBar" function
Hi, I tried to add a progress bar to my script, but it seems the "txtProgressBar" function will wipe out what I want to print before it(for example - the "Hello" in following script), and the parameters "title" and "label" do not work either. How can I put a title for the progress bar? or is there any other better function I can use? testi...
2010 Nov 20
1
txtProgressBar strange behavior in R 2.12.0
Hi, I am running R 2.12.0 (windows). example(txtProgressBar) gives me some funny screen output with all kinds of special characters appearing and disappearing. It's happening on two different mashines since vs. 2.12.0. Is this a known issue? Best, Jalla -- View this message in context: http://r.789695.n4.nabble.com/txtProgressBar-strange-behavior-i...
2011 Mar 15
2
Feature request: txtProgressBar with ability to write to arbitrary stream
Hi all, I use txtProgressBar to monitor progress of large computations. What I miss is the ability to redirect the progress bar to a stream other than stdout, specifically to the message stream. This would be useful for running Sweave scripts: When redirected to stderr, the bar could be visible even though console output i...
2011 Feb 14
2
txtProgressBar examples?
Dear R users, I am curious if someone could direct me towards websites/tutorials for uses of progress bars (especially) in R. I can't seem to figure them out. Thanks very much, Scott [[alternative HTML version deleted]]
2008 Sep 15
2
Cross-platform function availability
Hi all, Is there any way to determine which functions are available on which platforms? For example, winProgr essBar (and related functions) are only available on Windows, but what about tkProgressBar and txtProgressBar? Is there any way to figure out which functions are only available on certain platforms, without installing R on that platform and checking? Thanks, Hadley -- http://had.co.nz/
2008 May 09
1
getWinProgressBar does not return previous value
...Bar() > 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 v2.7.0. > sessionInfo() R version 2.7.0 (2008-04-22) i386-pc-mingw32 locale: LC_COLLATE=...
2013 Jun 19
2
Barra de progreso
...s@r-project.org" <R-help-es@r-project.org> Enviado: Martes 18 de junio de 2013 19:20 Asunto: Re: [R-es] Barra de progreso # Fuente: http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/ library(utils) total <- 20 # create progress bar pb <- txtProgressBar(min = 0, max = total, style = 3) for(i in 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)...
2012 Jul 22
2
Reading many large files causes R to crash - Possible Bug in R 2.15.1 64-bit Ubuntu
...this is the right place to post. parseTickDataFromDir = function(tickerDir, per, subper, fun) { tickerAbsFilenames = list.files(tickerDir,full.names=T) tickerNames = list.files(tickerDir,full.names=F) tickerNames = gsub("_[a-zA-Z0-9].csv","",tickerNames) pb <- txtProgressBar(min = 0, max = length(tickerAbsFilenames), style = 3) for(i in 1:length(tickerAbsFilenames)) { # Grab Raw Tick Data dat.i = parseTickData(tickerAbsFilenames[i]) #Sys.sleep(1) # Create Template dates <- unique(substr(as.character(index(dat.i)), 1,10)) ti...
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]]
2016 Dec 07
3
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
...learing. >> In my real application, where the progress bar is used in a much >> slower function, the console is cleared every 2-3 iteration, which >> means that I cannot scroll back to check the output. testit <- function(x = sort(runif(20)), ...) { pb <- txtProgressBar(...) for(i in c(0, x, 1)) {Sys.sleep(0.2); setTxtProgressBar(pb, i)} Sys.sleep(1) close(pb) } it <- 0 while (TRUE) {testit(style = 3); it <- it + 1; print(paste("done", it))} >> Is this only a problem for a few, or is it reproducible? Any hints to >&g...
2013 Jun 20
1
Barra de progreso
...g> >Enviado: Martes 18 de junio de 2013 19:20 >Asunto: Re: [R-es] Barra de progreso > > > > ># Fuente: http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/ > >library(utils) >total <- 20 ># create progress bar >pb <- txtProgressBar(min = 0, max = total, style = 3) >for(i in 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, &...
2016 Nov 28
2
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
...eases the number of iterations before clearing. In my real application, where the progress bar is used in a much slower function, the console is cleared every 2-3 iteration, which means that I cannot scroll back to check the output. testit <- function(x = sort(runif(20)), ...) { pb <- txtProgressBar(...) for(i in c(0, x, 1)) {Sys.sleep(0.2); setTxtProgressBar(pb, i)} Sys.sleep(1) close(pb) } iter = 0 while (TRUE) {testit(style = 3); iter = iter + 1; print(paste("done", iter))} Is this only a problem for a few, or is it reproducible? Any hints to what the problem could be,...
2013 Jun 18
0
Barra de progreso
# Fuente: http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/ library(utils) total <- 20 # create progress bar pb <- txtProgressBar(min = 0, max = total, style = 3) for(i in 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)...
2009 Nov 09
1
Quickly generate all possible combinations of 2 groups
...inations of 2 groups of data. For 10 data points, that's 2^10 combinations, for 20 data points it's 2^20, etc. combn() from the combinat package is useful to this purpose, as in: ######## library(combinat) n=20 #number of data points in the data set start=proc.time()[3] #start a timer pb = txtProgressBar(max=n+1,style=3) #initialize a progress bar for(i in 0:n){ #for each possible size of set1 Set1 = combn(1:n,i) #get set1 combinations Set2 = rev(combn(1:n,n-i)) #get set2 combinations setTxtProgressBar(pb,i+1) #increment the progress bar } close(pb) #close the progress bar proc.time()[3]-start #...
2013 Jun 19
0
Barra de progreso
...gt; Enviado: Martes 18 de junio de 2013 19:20 > Asunto: Re: [R-es] Barra de progreso > > > > # Fuente: > http://ryouready.wordpress.com/2009/03/16/r-monitor-function-progress-with-a-progress-bar/ > > library(utils) > total <- 20 > # create progress bar > pb <- txtProgressBar(min = 0, max = total, style = 3) > for(i in 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",...
2012 Feb 03
2
Clear last x entries of R console
Hi All, I am trying to build in a progress-tracker into my loops that let me have a sense of their progress. I'd like to be able to output to screen a series of periods "...." etc. for each completion of the loop, but I <don't> want to build a pyramid, e.g. . .. ... .... etc. So I need to be able to delete <the last line> of the console entry to accomplish this.
2012 Sep 21
2
Inclusion of a countdown tool of remaining calculation time possible?
Dear All, We are currently working with very large datasets which even in R require a lot of calculation time. Is there an option of including a function/ tool or something alike which shows the remaining time of calculation? Just to see whether there is any progress or whether anything has crashed and to get a feeling whether we have to wait for 5 min or 30min... Any help is greatly
2010 Apr 05
2
Rprintf not updating
Hello all, I am using Rprintf in a C for loop (from .Call) to print a progress indicator showing the current percent complete. The loop I am doing is an time intensive call to another function. I have noticed that Rprintf does not print to the R-window until the entire loop has been completed. When it reaches the end of the loop it suddenly prints 0 percent to 100 percent in a split second.
2016 Dec 07
0
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
...In my real application, where the progress bar is used in a much > >> slower function, the console is cleared every 2-3 iteration, which > >> means that I cannot scroll back to check the output. > > testit <- function(x = sort(runif(20)), ...) { > pb <- txtProgressBar(...) > for(i in c(0, x, 1)) {Sys.sleep(0.2); setTxtProgressBar(pb, i)} > Sys.sleep(1) > close(pb) > } > > it <- 0 > while (TRUE) {testit(style = 3); it <- it + 1; print(paste("done", it))} > > >> Is this only a problem for a few, or...
2016 Dec 07
0
Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
...clearing. > In my real application, where the progress bar is used in a much > slower function, the console is cleared every 2-3 iteration, which > means that I cannot scroll back to check the output. > > > testit <- function(x = sort(runif(20)), ...) > { > pb <- txtProgressBar(...) > for(i in c(0, x, 1)) {Sys.sleep(0.2); setTxtProgressBar(pb, i)} > Sys.sleep(1) > close(pb) > } > > iter = 0 > while (TRUE) {testit(style = 3); iter = iter + 1; print(paste("done", > iter))} > > Is this only a problem for a few, or is it reproduc...