Displaying 1 result from an estimated 1 matches for "progressbar1".
Did you mean:
progressbar
2011 Apr 09
2
A question about "txtProgressBar" function
...le" 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?
testit <- function(total =20)
{
cat("Hello\n")
# create progress bar
pb <- txtProgressBar(min = 0, max = total, style = 3,title="ProgressBar1",label="ProgressBar2")
for(i in 1:total){
Sys.sleep(0.1)
# update progress bar
setTxtProgressBar(pb, i)
}
close(pb)
}
testit()
Best,
Yunfei Li
--------------------------------------------------------------------------------------
Research Assistant
Department of Statis...