I'm writing a user-defined function that includes a for-loop and would like to pause execution after every iteration. Is there some function that does this, like "pause" in MATLAB?
Asked
Active
Viewed 2.3k times
1 Answers
14
Yes, you can pause execution by using Sys.sleep()
. So, to wait for one second: Sys.sleep(1)
.

Lincoln Mullen
- 6,257
- 4
- 27
- 30