eyelinker icon indicating copy to clipboard operation
eyelinker copied to clipboard

Error with read.asc function

Open caroleguedj opened this issue 8 years ago • 5 comments

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

caroleguedj avatar Apr 04 '17 09:04 caroleguedj

Dear Carole,

Could you please share the file that's causing the issue? I can't help much otherwise.

Simon

dahtah avatar Apr 07 '17 12:04 dahtah

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,

caroleguedj avatar Apr 07 '17 13:04 caroleguedj

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?

dahtah avatar Apr 07 '17 14:04 dahtah

Huum, not really. When I coded the recording, I asked for 'LEFT,RIGHT,GAZE,AREA'

caroleguedj avatar Apr 11 '17 13:04 caroleguedj

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.

a-hurst avatar Sep 27 '19 22:09 a-hurst