Learn R Programming

⚠️There's a newer version (1.3.1) of this package.Take me there.

keypress (version 1.0.0)

Wait for a Key Press in a Terminal

Description

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.

Copy Link

Version

Install

install.packages('keypress')

Monthly Downloads

640

Version

1.0.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gabor Csardi

Last Published

June 6th, 2015

Functions in keypress (1.0.0)

keypress

Wait for a single keypress at the terminal
has_keypress_support

Check if the current platform/terminal supports reading single keys.