[R] Single character input without Enter

Dieter Menne dieter.menne at menne-biomed.de
Thu Feb 25 19:29:04 CET 2010



Greg Snow-2 wrote:
> 
> The playSudoku function in the sudoku package has 2 examples/methods of
> responding to single key strokes, whether those methods will work for your
> application or not depends on what you are trying to do.
> 
> 

Thanks, Greg, it boils down to the rather basic

getGraphicsEvent(prompt = "Waiting for input", 
                 onMouseDown = NULL, onMouseMove = NULL,
                 onMouseUp = NULL, onKeybd = NULL)

in grDevices; so no tclk needed.  Strange that nobody told me....

Dieter




-- 
View this message in context: http://n4.nabble.com/Single-character-input-without-Enter-tp1564153p1569460.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list