testit <- function(...)
{
pb <- timerProgressBar(...)
for(i in seq(0, 1, 0.05)) {
Sys.sleep(0.2)
setTimerProgressBar(pb, i)
}
Sys.sleep(0.2)
close(pb)
}
## throbber with elapsed and remaining time
testit(style = 2)
## progress bar with remaining time
testit(width = 50, char = ".", style = 3)
Run the code above in your browser using DataLab