keypress: Wait for a Key Press in a Terminal

Share:

Wait for a single key press at the 'R' prompt. This works in terminals, but does not currently work in the 'Windows' 'GUI', the 'OS X' 'GUI' ('R.app'), in 'Emacs' 'ESS', in an 'Emacs' shell buffer or in 'R Studio'. In these cases 'keypress' stops with an error message.

Author
Gabor Csardi [aut, cre]
Date of publication
2015-06-06 07:56:29
Maintainer
Gabor Csardi <csardi.gabor@gmail.com>
License
MIT + file LICENSE
Version
1.0.0
URLs

View on CRAN

Man pages

has_keypress_support
Check if the current platform/terminal supports reading...
keypress
Wait for a single keypress at the terminal

Files in this package

keypress
keypress/inst
keypress/inst/NEWS.md
keypress/inst/README.md
keypress/src
keypress/src/keypress.c
keypress/NAMESPACE
keypress/R
keypress/R/keypress.R
keypress/MD5
keypress/DESCRIPTION
keypress/man
keypress/man/has_keypress_support.Rd
keypress/man/keypress.Rd
keypress/LICENSE