With function sleep you can pause your code execution. If you nest it in between other two commands, you are going to prolong time till all of that is done.
message("First command")
Sys.sleep(0.5)
message("Second message")
With this statement, we will have to wait 0.5 seconds before, our second message is printed. This function accepts only one argument and that is actual time expressed in seconds.
Check all of this on YouTube.
No comments:
Post a Comment