Last active
August 29, 2015 14:05
-
-
Save randy3k/596fe8f30fe3482f2c76 to your computer and use it in GitHub Desktop.
R progress bar
This file contains 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 characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment