keypress (version 1.3.1)

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

Description

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

Usage

has_keypress_support()

Arguments

Value

Whether there is support for waiting for individual keypressses.

Details

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.

See Also

Other keypress function: keypress()

Examples

Run this code
has_keypress_support()

Run the code above in your browser using DataLab