R Lost Pause
Sys.sleep {base} | R Documentation |
Suspend Execution for a Time Interval
The latest tweets from @LostPause. Shmentai or Offbrand. The battle between Nux Taku and I will be legendary Free 14 day 1080p HD anime streaming trial here: https://www.crunchyroll.com/lostpa. The latest tweets from @lostpause. Ee casino games free.
Description
Suspend execution of R expressions for a specified time interval.
Usage
Arguments
time | The time interval to suspend execution for, in seconds. |
Details
Using this function allows R to temporarily be given very lowpriority and hence not to interfere with more important foregroundtasks. A typical use is to allow a process launched from R to setitself up and read its input files before R execution is resumed.
The intention is that this function suspends execution of Rexpressions but wakes the process up often enough to respond to GUIevents, typically every half second. It can be interrupted(e.g. by Ctrl-C or Esc at the R console).
There is no guarantee that the process will sleep for the whole of thespecified interval (sleep might be interrupted), and it may well takeslightly longer in real time to resume execution.
time
must be non-negative (and not NA
nor NaN
):Inf
is allowed (and might be appropriate if the intention is towait indefinitely for an interrupt). The resolution of the timeinterval is system-dependent, but will normally be 20ms or better.(On modern Unix-alikes it will be better than 1ms.)
Value
Invisible NULL
.

Note
How To Make Execution Pause, Sleep, Wait For X Seconds In R?
Despite its name, this is not currently implemented using thesleep
system call (although on Windows it does make use ofSleep
).