Rdocumentation
powered by
Learn R Programming
eyeris
: Flexible, Extensible, & Reproducible Pupillometry Preprocessing
Copy Link
Link to current version
Version
Version
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Install
install.packages('eyeris')
Monthly Downloads
575
Version
2.1.1
License
MIT + file LICENSE
Issues
0
Pull Requests
1
Stars
5
Forks
3
Repository
https://github.com/shawntz/eyeris/
Homepage
https://shawnschwartz.com/eyeris/
Maintainer
Shawn Schwartz
Last Published
July 26th, 2025
Functions in eyeris (2.1.1)
Search all functions
check_column
Check if column exists in dataframe
deblink
NA-pad blink events / missing data
check_time_monotonic
Check time series monotonicity
deblink_pupil
Internal function to remove blink artifacts from pupil data
check_data
Check if object is of class eyeris
check_epoch_msg_values
Check epoch message values against available events
detrend
Detrend the pupil time series
clean_string
Clean string by removing non-alphanumeric characters
export_confounds_to_csv
Export confounds data to CSV files
detransient
Remove pupil samples that are physiologically unlikely
convert_nested_dt
Convert nested data.table objects to tibbles
downsample
Downsample pupil time series with anti-aliasing filtering
count_epochs
Count epochs and validate data is epoched
detransient_pupil
Internal function to remove transient artifacts from pupil data
compute_baseline
Compute baseline correction for epoch data
draw_random_epochs
Draw random epochs for plotting
epoch_pupil
Main epoching and baselining logic
check_start_end_timestamps
Check start and end timestamps are balanced
check_baseline_mean
Check if baseline mean is zero
counter_bar
Create a counter progress bar
check_epoch_input
Check epoch input for plotting
check_baseline_inputs
Check baseline input arguments
evaluate_pipeline_step_params
Evaluate pipeline step parameters
draw_na_lines
Draw vertical lines at NA positions
epoch
Epoch (and baseline) pupil data based on custom event message structure
eyelink_asc_binocular_demo_dataset
Access example EyeLink .asc binocular mock dataset file provided by the eyeris package.
epoch_start_end_msg
Epoch using a start and an end message (explicit timestamps)
check_pupil_cols
Check if pupil_raw column exists
check_epoch_manual_input_data
Check epoch manual input data structure
epoch_and_baseline_block
Block-by-block epoch and baseline handler
get_timestamps
Obtain timestamps from events data
get_confounds_for_step
Calculate confounds for a single pupil data step
extract_baseline_epochs
Extract baseline epochs from timeseries data
detrend_pupil
Internal function to detrend pupil data
eyelink_asc_demo_dataset
Access example EyeLink .asc demo dataset file provided by the eyeris package.
eyelogger
Run
eyeris
commands with automatic logging of R console's stdout and stderr
epoch_manually
Manually epoch using provided start/end dataframes of timestamps
epoch_only_start_msg
Epoch based on a single event message (without explicit limits)
downsample_pupil
Internal function to downsample pupil data
make_report
Create eyeris report
get_block_numbers
Extract block numbers from eyeris object or character vector
format_call_stack
Format call stack information for display
lpfilt_pupil
Internal function to lowpass filter pupil data
sanitize_event_tag
Sanitize event tag string into canonical epoch label
run_bidsify
Internal function to run bidsify on a single eye
merge_events_with_timeseries
Process event messages and merge with timeseries
glassbox
The opinionated "glass box"
eyeris
pipeline
filter_epochs
Filter epoch names from eyeris object
print_lightbox_img_html
Print lightbox image HTML
make_md_table
Create markdown table from dataframe
make_gallery
Create interactive epoch gallery report
find_baseline_structure
Find baseline structure name for a given epoch
error_handler
Handle errors with custom error classes
eyeris-package
eyeris: Flexible, Extensible, & Reproducible Pupillometry Preprocessing
make_baseline_label
Create baseline label for epoch data
epoch_start_msg_and_limits
Epoch using a start message with fixed limits around it
interpolate_pupil
Interpolate missing pupil data using linear interpolation
is_binocular_object
Check if object is a binocular eyeris object
progress_bar
Create a progress bar for tracking operations
print_plots
Print plots in markdown format
glassbox_internal
Internal glassbox function for processing individual eyes
prompt_user
Prompt user for continuation
eyeris_color_palette
Default color palette for eyeris plotting functions
interpolate
Interpolate missing pupil samples
index_metadata
Index metadata from dataframe
tag_blinks
Tag blinks in pupil data
plot_pupil_distribution
Plot pupil distribution histogram
plot_detrend_overlay
Internal helper to plot detrending overlay
make_epoch_label
Generate epoch label from events and data
make_bids_fname
Make a BIDS-compatible filename
make_prog_summary_plot
Create progressive preprocessing summary plot
plot.eyeris
Plot pre-processed pupil data from
eyeris
plot_binocular_correlation
Plot binocular correlation between left and right eye data
make_md_table_multiline
Create multiline markdown table from dataframe
load_asc
Load and parse SR Research EyeLink
.asc
files
lpfilt
Lowpass filtering of time series data
plot_with_seed
Plot with seed handling for glassbox pipeline
tick
Tick a progress bar
tag_gaze_coords
Tag gaze coordinates as on/off screen
slice_epoch
Slice epoch from raw timeseries data
save_progressive_summary_plots
Save progressive summary plots for each block
should_plot_binoc_cors
Check if binocular correlations should be plotted
save_detrend_plots
Save detrend plots for each block
zscore
Z-score pupil timeseries data
plot_gaze_heatmap
Create gaze heatmap of eye coordinates
slice_epochs_no_limits
Slice epochs with no explicit limits
process_epoch_and_baselines
Epoch and baseline processor
process_eyeris_data
Process eyeris data and create eyeris object
speed
Calculate pupil speed using finite differences
summarize_confounds
Extract confounding variables calculated separately for each pupil data file
zscore_pupil
Internal function to z-score pupil data
slice_epochs_with_limits
Slice epochs with explicit limits
normalize_gaze_coords
Normalize gaze coordinates to screen-relative units
render_report
Render R Markdown report
pipeline_handler
Build a generic operation (extension) for the
eyeris
pipeline
parse_eyelink_info
Parse EyeLink version and model information
parse_call_stack
Parse call stack information
robust_plot
Robust plotting function with error handling
check_and_create_dir
Check and create directory if it doesn't exist
bidsify
Save out pupil timeseries data in a BIDS-like structure
bin
Bin pupil time series by averaging within time bins
check_baseline_epoch_counts
Check baseline and epoch counts match
alert
Display formatted alert messages
check_input
Check if input argument is provided
calc_euclidean_dist
Calculate Euclidean distance between points
add_unique_event_identifiers
Add unique event identifiers to handle duplicate event messages
bin_pupil
Bin pupil data into specified time bins
check_epoch_manual_input_dfs
Check epoch manual input dataframe format
add_unique_identifiers_to_df
Add unique identifiers to a single events data frame
calculate_epoched_confounds
Calculate confounds for epoched data
check_limits
Check limits in wildcard mode