# 1) A simple progress indicator in \%
cat("Simple progress indicator in %:
")
for (i in 1:101) {
progress(i)
Sys.sleep(0.05)
}
cat("Done!
")
# 2) A progress indicator with 'x on y'
cat("A variation...
")
for (i in 1:31) {
progress(i, 30)
Sys.sleep(0.2)
}
cat("Done!
")
Run the code above in your browser using DataLab