For text-based progress bars see the ProgressBar class in R.utils, e.g.
# A "faster" progress bar with default step length 1.4.
pb <- ProgressBar(max=42, stepLength=1.4)
reset(pb)
while (!isDone(pb)) {
x <- rnorm(3e4)
increase(pb)
Sys.sleep(0.02)
}
cat("\n")
Output: [.|.|
Hi,
I would like to know if it is possible to generate a waiting bar in R when
you execute your programs like in Matlab, to make the program more living.
Particularly for the loops, it can be useful to know how many time left...
Thanks in advance,
Loïc Joffre
--
View this message in context:
2 matches
Mail list logo