Is there a "pause" function in R?
r
Solution
Yes, you can pause execution by using `Sys.sleep()`. So, to wait for one second: `Sys.sleep(1)`.
Problem
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?