Wait for a keypress

Share:

Description

Wait for a keypress

Usage

1
readkey(prompt = "Press [enter] to continue")

Arguments

prompt

the text to display

Changed Feb 23, 2015 by njf

prompt may be set by a parameter rather than hard coding it.

Author(s)

nnn, arulmr, Neal Fultz

References

http://stackoverflow.com/questions/15272916/how-to-wait-for-a-keypress-in-r