Code Monkey home page Code Monkey logo

alexander-pastukhov / eyelinkreader Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 2.0 4.38 MB

R package to import eye tracking recording generated by SR Research Eyelink eye tracker from EDF-files. It includes options to import events and/or recorded samples and extract individual events such as saccades, fixatoins, blinks, and recorded variables.

Home Page: https://alexander-pastukhov.github.io/eyelinkReader

R 61.48% C++ 38.52%
eye-tracking eyelink edf sr-research

eyelinkreader's People

Contributors

alexander-pastukhov avatar alexholcombe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eyelinkreader's Issues

eyelinkReader::plot fails to install, even though other functions do install

I somehow have discovered a new failure mode, wherein all the basic functions install, except for plot, such that invoking plot, e.g. with ``` eyelinkReader::plot ``, yields:

Error: 'plot' is not an exported object from 'namespace:eyelinkReader'

One can see the other functions that are installed, e.g. with lsf.str("package:eyelinkReader"):


adjust_message_time : function (object, prefix)  
check_consistency_flag : function (consistency)  
check_logical_flag : function (logical_flag)  
check_string_parameter : function (string_parameter)  
check_that_compiled : function (fail_loudly = TRUE)  
compiled_library_status : function ()  
compute_cyclopean_samples : function (object, fun = mean)  
convert_header_codes : function (trial_headers)  
convert_NAs : function (original_frame)  
convert_recording_codes : function (trial_recordings)  
extract_AOIs : function (object)  
extract_blinks : function (object)  
extract_display_coords : function (object, message_prefix = "DISPLAY_COORDS", silent = FALSE)  
extract_fixations : function (object)  
extract_saccades : function (object)  
extract_triggers : function (object, message_prefix = "TRIGGER")  
extract_variables : function (object)  
logical_index_for_sample_attributes : function (import_samples, sample_attributes)  
read_edf : function (file, consistency = "check consistency and report", import_events = TRUE, 
    import_recordings = TRUE, import_samples = FALSE, sample_attributes = NULL, 
    start_marker = "TRIALID", end_marker = "TRIAL_RESULT", import_saccades = TRUE, 
    import_blinks = TRUE, import_fixations = TRUE, import_variables = TRUE, 
    verbose = TRUE, fail_loudly = TRUE)  
read_edf_file : function (filename, consistency, import_events, import_recordings, 
    import_samples, sample_attr_flag, start_marker_string, end_marker_string, 
    verbose)  
read_preamble : function (file, fail_loudly = TRUE)  
read_preamble_str : function (filename)  

I've tried uninstalling R, and RStudio, and re-installing Can't figure out why this doesn't work anymore even though I had it working before (with my fork that fixes the path problem on Mac). Any ideas?

On Macs, library path ends up being wrong, so installation fails

While the normal installation procedure worked a year or two ago on Macs, something broke it, perhaps an OS upgrade or Apple Silicon change.
Now when I try installation on multiple Macs here, which give the following error during the attempt to use edfapi during installation:


"tried: '/Library/Frameworks/edfapi.framework/edfapi.framework/Versions/A/edfapi' (no such file)"

Please note the redundant "edfapi.framework/edfapi.framework/". If one of those were deleted, it would find the file.

I worked out a fix for this. The zzz.R file that sets up the paths has this , specifically for Darwin, on line 70 :


library_path <-'/Library/Frameworks/edfapi.framework/'

Somewhere else that I haven't worked out, another edfapi.framework gets appended to that library_path.
If one simply deletes that edfapi.framework\ from line 70, everything works (except I get a really weird error where it says .rdb is corrupt in RStudio, whereas everything works in R.app, until I uninstall R and re-install it).

I'll do a bit more testing to ensure this works on our other Mac and then perhaps I should make the edit and set it as a pull request? Ideally to maintain possible backward compatibility, we would just add the version without edfapi.framework\ as a second directory that it also tries, but unfortunately I don't understand the system well enough to do that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.