session_grid(NULL)
n1 <- 3
n2 <- 83
p <- 0.0011
#require(tcltk)
pb <- ursaProgressBar(min=0,max=n1,title="first",tail=TRUE)
for (i in seq(n1)) {
pb2 <- ursaProgressBar(min=0,max=n2,title="second")
for (i in seq(n2)) {
setUrsaProgressBar(pb2)
Sys.sleep(p)
}
close(pb2)
setUrsaProgressBar(pb)
}
close(pb)
Run the code above in your browser using DataLab