Learn R Programming

bazar (version 1.0.11)

pause: Have a rest, make a pause

Description

The pause function stops momentarily the execution of a program. Pressing <Enter> continues the execution; typing 'stop' (without quotation marks) ends the program.

Usage

pause(duration = Inf)

Arguments

duration

numeric or infinite. If duration is infinite (the default), then a pause is made until the user presses <Enter> or types 'stop'. Else if x = duration is a number, then a pause is made during x seconds.

See Also

Sys.sleep.