search for: martin_teicher

Displaying 1 result from an estimated 1 matches for "martin_teicher".

2010 Aug 14
2
detecting a key press
Hi Folks, 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 seem to wait for the user to also press return. Is there a way to detect the initial key press without requiring them to hit return?