Sleep for a Specified Period

DESCRIPTION:

Sleep for t seconds, but at least 1.

USAGE:

sleep(t=1)
Sys.sleep(t=1)

ARGUMENTS:

t
a positive numeric value, the number of seconds to sleep.

VALUE:

in all single-threaded versions of S-PLUS, returns TRUE.

DETAILS:

Sys.sleep function is just a wrapper for sleep. It is provided for source code compatibility with other S language dialects.

EXAMPLES:

   
# sleep for five seconds
sleep(5)