Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with read.asc #7

Open
scienceanna opened this issue Sep 13, 2017 · 4 comments
Open

Problem with read.asc #7

scienceanna opened this issue Sep 13, 2017 · 4 comments

Comments

@scienceanna
Copy link

Hi - thanks for the package, it's very helpful!

I'm encountering a problem with the read.asc function for some data I'm working on - see the attached files. test_asc_files.zip

test.asc is a sample of 2 trials from an experiment. When attempting to run this with read.asc, I get the following error:

Error in vector(type, length) :
vector: cannot make a vector of mode 'NULL'.

test_2.asc is a reduced snippet of the data that just has 1 trial - and this runs fine with read.asc for me.

Let me know if you need any more info - and thanks so much for any help you can give.

Anna

@dahtah
Copy link
Owner

dahtah commented Sep 25, 2017

Hi - sorry for the late reply. Which model are you using? Do you have a handbook for it? Apparently the file format has changed a bit from the manual I have for the Eyelink 1000.
In the meantime, try disabling the "input" field in the samples data when generating the asc files.

@dahtah
Copy link
Owner

dahtah commented Sep 25, 2017

Actually, better yet: use the current github version:

devtools::install_github('dahtah/eyelinker')

@NaomiHavron
Copy link

Hi,

I had the same error and tried both solutions - now I get a different error:
"Warning: 169041 parsing failures."
(I am using an Eyelink 1000 and your package used to work perfectly for me - maybe a recent update?)

Thanks in advance!

@a-hurst
Copy link

a-hurst commented Sep 27, 2019

Hi @scienceanna and @NaomiHavron, in the off-chance you're still looking for a solution to this problem, the issue was that your ASC files contained input port data in the samples (the 127.0 column) which eyelinker 0.1 didn't support. The latest CRAN release of eyelinker (0.2.0) fixes the issue, importing your example files just fine:

library(eyelinker)
a <- read.asc('test.asc')
a$raw
## # A tibble: 7,459 x 7
##    block    time    xp    yp    ps input cr.info
##    <dbl>   <int> <dbl> <dbl> <dbl> <dbl> <chr>
##  1     1 1581586  401.  292   4320   127 ...
##  2     1 1581588  401.  293.  4318   127 ...
##  3     1 1581590  401.  292.  4313   127 ...
##  4     1 1581592  401.  292.  4310   127 ...
##  5     1 1581594  401.  292.  4304   127 ...
##  6     1 1581596  401.  293.  4296   127 ...
##  7     1 1581598  401.  294.  4293   127 ...
##  8     1 1581600  401.  293.  4288   127 ...
##  9     1 1581602  400.  291.  4283   127 ...
## 10     1 1581604  400.  292.  4276   127 ...
## # … with 7,449 more rows

Also, if you have any more issues with the package, please open them on the project's new page (I've officially taken over maintenance): https://github.com/a-hurst/eyelinker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants