powered by
Check if the current platform/terminal supports reading single keys.
has_keypress_support()
Whether there is support for waiting for individual keypressses.
Supported platforms:
Terminals in Windows and Unix.
RStudio terminal.
Not supported:
RStudio (if not in the RStudio terminal).
R.app on macOS.
Rgui on Windows.
Emacs ESS.
Others.
Other keypress function: keypress()
keypress()
Run the code above in your browser using DataLab