has_keypress_support | R Documentation |
Check if the current platform/terminal supports reading single keys.
has_keypress_support()
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.
Whether there is support for waiting for individual keypressses.
Other keypress function:
keypress()
has_keypress_support()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.