Running 'testthat.R' [19s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(eyeris)
  
  eyeris v3.0.1 - Lumpy Space Princess ꒰•ᴗ•｡꒱۶
  Welcome! Type ?`eyeris` to get started.
  
  > 
  > test_check("eyeris")
  Saving _problems/test-bin-6.R
  i [2026-02-23 18:58:24] [INFO] Created output directory:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_chunked_output
  v [2026-02-23 18:58:24] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/bids_test/derivatives/test-db.eyerisdb
  i [2026-02-23 18:58:24] [INFO] Exporting data types: confounds_summary
  i [2026-02-23 18:58:24] [INFO] Processing data type: confounds_summary
  i [2026-02-23 18:58:24] [INFO] Grouping tables by epoch label...
  i [2026-02-23 18:58:24] [INFO] Found 1 epoch label groups for
  confounds_summary: _nolabel
  i [2026-02-23 18:58:24] [INFO] Analyzing column structures within epoch group
  '_nolabel'...
  i [2026-02-23 18:58:24] [INFO] Found 2 column-compatible groups within
  '_nolabel': goal, stim
  i [2026-02-23 18:58:24] [INFO] Processing confounds_summary group 'goal' (2
  tables)
  i [2026-02-23 18:58:24] [INFO] Using chunked processing (file size limit = 50MB
  < 500MB threshold)
  i [2026-02-23 18:58:24] [INFO] Processing with file size chunking enabled
  i [2026-02-23 18:58:24] [INFO] Starting chunked query processing (chunk size:
  50)
  i [2026-02-23 18:58:24] [INFO] Query: SELECT * FROM
  "confounds_summary_01_task_run01_goal" UNION ALL SELECT * FROM
  "confounds_summary_02_task_run01_goal"
  i [2026-02-23 18:58:24] [INFO] Processing chunk 1: 50 rows
  i [2026-02-23 18:58:24] [INFO] Created output file:
  test-db_confounds_summary_goal_chunked_01.csv
  i [2026-02-23 18:58:24] [INFO] Processing chunk 2: 50 rows
  i [2026-02-23 18:58:24] [INFO] Processing chunk 3: 50 rows
  i [2026-02-23 18:58:24] [INFO] No more data to process
  v [2026-02-23 18:58:24] [OKAY] Chunked processing complete:
  i [2026-02-23 18:58:24] [INFO] Total rows: 150
  i [2026-02-23 18:58:24] [INFO] Chunks: 3
  i [2026-02-23 18:58:24] [INFO] Processing time: 0 seconds
  i [2026-02-23 18:58:24] [INFO] Average rate: 3468 rows/second
  i [2026-02-23 18:58:24] [INFO] Processing confounds_summary group 'stim' (1
  tables)
  i [2026-02-23 18:58:24] [INFO] Using chunked processing (file size limit = 50MB
  < 500MB threshold)
  i [2026-02-23 18:58:24] [INFO] Processing with file size chunking enabled
  i [2026-02-23 18:58:24] [INFO] Starting chunked query processing (chunk size:
  50)
  i [2026-02-23 18:58:24] [INFO] Query: SELECT * FROM
  "confounds_summary_01_task_run01_stim"
  i [2026-02-23 18:58:24] [INFO] Processing chunk 1: 50 rows
  i [2026-02-23 18:58:24] [INFO] Created output file:
  test-db_confounds_summary_stim_chunked_01.csv
  i [2026-02-23 18:58:24] [INFO] Processing chunk 2: 50 rows
  i [2026-02-23 18:58:24] [INFO] No more data to process
  v [2026-02-23 18:58:24] [OKAY] Chunked processing complete:
  i [2026-02-23 18:58:24] [INFO] Total rows: 100
  i [2026-02-23 18:58:24] [INFO] Chunks: 2
  i [2026-02-23 18:58:24] [INFO] Processing time: 0 seconds
  i [2026-02-23 18:58:24] [INFO] Average rate: 3650 rows/second
  v [2026-02-23 18:58:24] [OKAY] Export complete!
  i [2026-02-23 18:58:24] [INFO] Data types exported: 2
  i [2026-02-23 18:58:24] [INFO] Total rows exported: 250
  i [2026-02-23 18:58:24] [INFO] Output directory:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_chunked_output
  i [2026-02-23 18:58:24] [INFO] Disconnected from eyeris database
  i [2026-02-23 18:58:25] [INFO] Created output directory:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/size_test_output
  v [2026-02-23 18:58:25] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/bids_size_test/derivatives/size-test.eyerisdb
  i [2026-02-23 18:58:25] [INFO] Exporting data types: timeseries
  i [2026-02-23 18:58:25] [INFO] Processing data type: timeseries
  i [2026-02-23 18:58:25] [INFO] Processing timeseries group 'all' (1 tables)
  i [2026-02-23 18:58:25] [INFO] Using chunked processing (file size limit =
  0.05MB < 500MB threshold)
  i [2026-02-23 18:58:25] [INFO] Processing with file size chunking enabled
  i [2026-02-23 18:58:25] [INFO] Starting chunked query processing (chunk size:
  500)
  i [2026-02-23 18:58:25] [INFO] Query: SELECT * FROM "timeseries_01_test_run01"
  i [2026-02-23 18:58:25] [INFO] Processing chunk 1: 500 rows
  i [2026-02-23 18:58:25] [INFO] Created output file:
  size-test_timeseries_chunked_01.csv
  i [2026-02-23 18:58:25] [INFO] Processing chunk 2: 500 rows
  i [2026-02-23 18:58:25] [INFO] Starting new file due to size limit:
  size-test_timeseries_chunked_02.csv
  i [2026-02-23 18:58:25] [INFO] Created output file:
  size-test_timeseries_chunked_02.csv
  i [2026-02-23 18:58:25] [INFO] Processing chunk 3: 500 rows
  i [2026-02-23 18:58:25] [INFO] Starting new file due to size limit:
  size-test_timeseries_chunked_03.csv
  i [2026-02-23 18:58:25] [INFO] Created output file:
  size-test_timeseries_chunked_03.csv
  i [2026-02-23 18:58:25] [INFO] Processing chunk 4: 500 rows
  i [2026-02-23 18:58:25] [INFO] Starting new file due to size limit:
  size-test_timeseries_chunked_04.csv
  i [2026-02-23 18:58:25] [INFO] Created output file:
  size-test_timeseries_chunked_04.csv
  i [2026-02-23 18:58:25] [INFO] No more data to process
  v [2026-02-23 18:58:25] [OKAY] Chunked processing complete:
  i [2026-02-23 18:58:25] [INFO] Total rows: 2000
  i [2026-02-23 18:58:25] [INFO] Chunks: 4
  i [2026-02-23 18:58:25] [INFO] Processing time: 0.1 seconds
  i [2026-02-23 18:58:25] [INFO] Average rate: 16972 rows/second
  i [2026-02-23 18:58:25] [INFO] Finalizing 4 output files with proper
  numbering...
  i [2026-02-23 18:58:25] [INFO] Renamed: size-test_timeseries_chunked_01.csv ->
  size-test_timeseries_chunked_01-of-04.csv
  i [2026-02-23 18:58:25] [INFO] Renamed: size-test_timeseries_chunked_02.csv ->
  size-test_timeseries_chunked_02-of-04.csv
  i [2026-02-23 18:58:25] [INFO] Renamed: size-test_timeseries_chunked_03.csv ->
  size-test_timeseries_chunked_03-of-04.csv
  i [2026-02-23 18:58:25] [INFO] Renamed: size-test_timeseries_chunked_04.csv ->
  size-test_timeseries_chunked_04-of-04.csv
  v [2026-02-23 18:58:25] [OKAY] Export complete!
  i [2026-02-23 18:58:25] [INFO] Data types exported: 1
  i [2026-02-23 18:58:25] [INFO] Total rows exported: 2000
  i [2026-02-23 18:58:25] [INFO] Output directory:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/size_test_output
  i [2026-02-23 18:58:25] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:27] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_bids/derivatives/user-test.eyerisdb
  i [2026-02-23 18:58:27] [INFO] Executing query: SELECT * FROM (SELECT * FROM
  "epochs_002_02_memory_run01") as combined_data WHERE 1=1 AND subject_id = '002'
  i [2026-02-23 18:58:27] [INFO] Executing query: SELECT * FROM (SELECT * FROM
  "epochs_002_02_memory_run01") as combined_data WHERE 1=1 AND subject_id = '002'
  AND session_id = '02' AND task_name = 'memory'
  i [2026-02-23 18:58:27] [INFO] Disconnected from eyeris database
  i [2026-02-23 18:58:29] [INFO] Executing query: SELECT * FROM (SELECT * FROM
  "epoch_timeseries_005_01_epochtest_run01_prepostprobe") as combined_data WHERE
  1=1 AND subject_id = '005'
  Saving _problems/test-downsample-6.R
  Saving _problems/test-load_asc-3.R
  v [2026-02-23 18:58:30] [OKAY] Running eyeris::load_asc()
  Saving _problems/test-parallel-database-21.R
  v [2026-02-23 18:58:30] [OKAY] Running eyeris::load_asc()
  Saving _problems/test-parallel-database-42.R
  v [2026-02-23 18:58:30] [OKAY] Running eyeris::load_asc()
  Saving _problems/test-parallel-database-62.R
  v [2026-02-23 18:58:30] [OKAY] Running eyeris::load_asc()
  Saving _problems/test-parallel-database-82.R
  i [2026-02-23 18:58:32] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:32] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_bids/derivatives/test-study.eyerisdb
  i [2026-02-23 18:58:32] [INFO] Disconnected from eyeris database
  i [2026-02-23 18:58:33] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:33] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_bids_read/derivatives/read-test.eyerisdb
  i [2026-02-23 18:58:33] [INFO] Disconnected from eyeris database
  i [2026-02-23 18:58:34] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:34] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_bids_size/derivatives/size-test.eyerisdb
  i [2026-02-23 18:58:34] [INFO] Disconnected from eyeris database
  i [2026-02-23 18:58:34] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:35] [OKAY] Connected to eyeris database:
  D:\temp\2026_02_23_12_00_48_23319\RtmpMPSzYt/test_bids_empty/derivatives/empty-test.eyerisdb
  ! [2026-02-23 18:58:35] [WARN] No valid tables found in database (after
  excluding temp tables)
  i [2026-02-23 18:58:35] [INFO] Disconnected from eyeris database
  v [2026-02-23 18:58:35] [OKAY] Running eyeris::load_asc()
  Saving _problems/test-plot_gaze_heatmap-5.R
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 171 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bin.R:6:3'): bin() works as expected ───────────────────────────
  Error: object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─eyeris::load_asc(demo_data) at test-bin.R:6:3
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-downsample.R:6:3'): downsample() works as expected ─────────────
  Error: object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─eyeris::load_asc(demo_data) at test-downsample.R:6:3
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Error ('test-load_asc.R:3:3'): load_asc function returns list with expected objects ──
  Error: object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─eyeris::load_asc(eye_file) at test-load_asc.R:3:3
   2. └─base::loadNamespace(x)
   3.   └─base::namespaceImportFrom(...)
   4.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  ── Failure ('test-parallel-database.R:9:5'): manual parallel processing flag enables temporary databases ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─withr::with_envvar(...) at test-parallel-database.R:4:3
   2. │ └─base::force(code)
   3. └─testthat::expect_no_error(...) at test-parallel-database.R:9:5
  ── Failure ('test-parallel-database.R:31:5'): SLURM environment variables are detected for parallel processing ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─withr::with_envvar(...) at test-parallel-database.R:28:3
   2. │ └─base::force(code)
   3. └─testthat::expect_no_error(...) at test-parallel-database.R:31:5
  ── Failure ('test-parallel-database.R:51:5'): PBS environment variables are detected for parallel processing ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─withr::with_envvar(...) at test-parallel-database.R:48:3
   2. │ └─base::force(code)
   3. └─testthat::expect_no_error(...) at test-parallel-database.R:51:5
  ── Failure ('test-parallel-database.R:70:3'): normal database operation works without parallel processing ──
  Expected `{ ... }` not to throw any errors.
  Actually got a <simpleError> with message:
    object 'read_table2' is not exported by 'namespace:readr'
  ── Error ('test-plot_gaze_heatmap.R:5:3'): gaze heatmap function works correctly ──
  Error: object 'read_table2' is not exported by 'namespace:readr'
  Backtrace:
      ▆
   1. ├─eyeris::glassbox(eyelink_asc_demo_dataset()) at test-plot_gaze_heatmap.R:5:3
   2. │ └─pipeline[["load_asc"]](file, params, original_call)
   3. │   └─eyeris::load_asc(...)
   4. └─base::loadNamespace(x)
   5.   └─base::namespaceImportFrom(...)
   6.     └─base::importIntoEnv(impenv, impnames, ns, impvars)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 171 ]
  Error:
  ! Test failures.
  Execution halted