Description Usage Arguments Value Examples
View source: R/1-BasicTerminal.R
Listen for a keypress, then apply keypress to a function or echo it to the terminal screen. The user must be in a terminal to use getkp
; it will not work in RStudio or the R GUI. All actions within R are halted until the keypress is returned.
1 |
fn |
list of named functions |
echo |
whether the keypress should be echoed to the screen if not found in list |
character naming the key that was pressed (invisibly).
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.