Error with read.asc function
Dear Simon,
First, thank ou for you package. I have an issue with 'read.asc' function. I get the following error when trying to read the file attached:
fpath <- system.file("~/mypath/RecSub-withTH.asc",package="eyelinker_parser") dat <- read.asc(fpath) Error in str_select(inp, "^SAMPLES")[[1]] : indice hors limites De plus : Warning message: In file(con, "r") : file("") accepte seulement open = "w+" et open = "w+b" : utilisation du premier
Do you have any idea about this error message? Thank you in advance!
Carole
Dear Carole,
Could you please share the file that's causing the issue? I can't help much otherwise.
Simon
Dear Simon,
Thank you very much for your answer. Here is the file (attached) RecSub-withTH.txt . Thank you in advance for your help,
Best,
Saccade events in your file contain 16 columns, I expect a maximum of 12 (from the manual I have). Do you know what those extra 4 columns are?
Huum, not really. When I coded the recording, I asked for 'LEFT,RIGHT,GAZE,AREA'
Hi @carolege, in the off-chance this bug is still relevant to your work, the issue with your ASC was that the events are in HREF format, which contains some extra columns so that both HREF and GAZE info is reported for each fixation/saccade event. The older version of eyelinker didn't support HREF events, but the latest version on CRAN (0.2.0) now does and your provided file imports fine.