Re: [R] detecting a key press

2010-08-13 Thread Greg Snow
The playSudoku function in the Sudoku package reacts to keypresses using windows or Tk, you can use that as an example. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-projec

Re: [R] detecting a key press

2010-08-13 Thread Ben Bolker
Martin Teicher hms.harvard.edu> writes: > I'm relatively new to r. I'd like to have a user respond by > pressing a 1 or a 2 and determining their choice and > the time of response. Previous postings have indicated that > keyboard responses can be processed using > scan and readline but both se