eyelinker

CRAN Version R-CMD-check codecov Lifecycle: maturing

An R package for importing plain-text ASC data files from EyeLink eye trackers into (relatively) well-structured data frames. EDF files first must be converted to ASC using the edf2asc tool before they can be imported.

Plot of fixations and saccades from ASC

Great efforts have been made to make this package fast, stable, and highly compatible. If you encounter any problems using eyelinker (or would like to make a feature request), please open an issue on the project’s GitHub page.

NOTE: As of version 0.2.0, eyelinker has been rewritten almost entirely for greater stability and speed. Please refer to the NEWS file for a comprehensive list of changes and improvements.

Installation

# Install the latest release from CRAN:
install.packages("eyelinker")

# Install the latest development version from GitHub:
require(devtools)
devtools::install_github("a-hurst/eyelinker")

Usage

library(eyelinker)

# Example file from SR research that ships with the package
fpath <- system.file("extdata/mono500.asc.gz", package = "eyelinker")
dat <- read.asc(fpath)
plot(dat$raw$time, dat$raw$xp, xlab = "Time (ms)", ylab = "Eye position along x-axis (px)")

# For more info:
vignette("basics", package = "eyelinker")

Credits