[R] using R for a reaction-time experiment
Greg.Snow at intermountainmail.org
Mon Jul 23 18:06:33 CEST 2007
Under windows you could use a graphics window for the stimulus and
capture the keypress using the getGraphicsEvent function (this does not
require hitting enter, but the graphics window needs to be the active
window through the experiment). The playSudoku function in the sudoku
package shows one example of using getGraphicsEvent to capture
Hope this helps,
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at intermountainmail.org
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Seth Roberts
> Sent: Sunday, July 22, 2007 10:38 AM
> To: r-help at stat.math.ethz.ch
> Subject: [R] using R for a reaction-time experiment
> I want to use R to run a reaction-time experiment: Something
> appears on the screen, I respond by typing something (one
> keystroke), the system measures the speed of my response. R
> would be great for this if only I didn't have to hit Enter to
> enter that keystroke. I am doing such experiments now but
> they require two actions per trial: hit keystroke, hit Enter.
> Is there some way that R can be made to respond to a single
> keystroke (other than Enter)?
> View this message in context:
> Sent from the R help mailing list archive at Nabble.com.
> R-help at stat.math.ethz.ch mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help