Created
April 11, 2012 19:51
Revisions
-
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ ng <- 1000 # create the progress bar prog <- txtProgressBar(min=0, max=ng, char="*", style=3) for(g in 1:ng){ # do stuff z <- numeric(10000) z <- rgamma(10000, 1, 1) setTxtProgressBar(prog, g) # update the progress bar } close(prog) # close the progress bar