keypress: Wait for a Key Press in a Terminal

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' (''), in 'Emacs' 'ESS', in an 'Emacs' shell buffer or in 'R Studio'. In these cases 'keypress' stops with an error message.

Getting started

Package details

AuthorGábor Csárdi [aut, cre], Jon Griffiths [aut]
MaintainerGábor Csárdi <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the keypress package in your browser

Any scripts or data that you put into this service are public.

keypress documentation built on Jan. 11, 2020, 9:17 a.m.