Running ‘testthat.R’ [6s/6s]
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(MEAanalysis)
  > 
  > test_check("MEAanalysis")
  New names:
  * `` -> `...7`
  * `` -> `...8`
  * `` -> `...9`
  * `` -> `...10`
  * `` -> `...11`
  * `` -> `...12`
  * `` -> `...13`
  * `` -> `...14`
  * `` -> `...15`
  * `` -> `...16`
  * `` -> `...17`
  * `` -> `...18`
  * `` -> `...19`
  * `` -> `...20`
  * `` -> `...21`
  * `` -> `...22`
  * `` -> `...23`
  * `` -> `...24`
  * `` -> `...25`
  Saving _problems/test-create_electrode_dataset-4.R
  New names:
  * `` -> `...7`
  * `` -> `...8`
  * `` -> `...9`
  * `` -> `...10`
  * `` -> `...11`
  * `` -> `...12`
  * `` -> `...13`
  * `` -> `...14`
  * `` -> `...15`
  * `` -> `...16`
  * `` -> `...17`
  * `` -> `...18`
  * `` -> `...19`
  * `` -> `...20`
  * `` -> `...21`
  * `` -> `...22`
  * `` -> `...23`
  * `` -> `...24`
  * `` -> `...25`
  Saving _problems/test-create_electrode_dataset-12.R
  New names:
  * `` -> `...7`
  * `` -> `...8`
  * `` -> `...9`
  * `` -> `...10`
  * `` -> `...11`
  * `` -> `...12`
  * `` -> `...13`
  * `` -> `...14`
  * `` -> `...15`
  * `` -> `...16`
  * `` -> `...17`
  * `` -> `...18`
  * `` -> `...19`
  * `` -> `...20`
  * `` -> `...21`
  * `` -> `...22`
  * `` -> `...23`
  * `` -> `...24`
  * `` -> `...25`
  Saving _problems/test-create_electrode_dataset-31.R
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 11 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-create_electrode_dataset.R:4:3'): create_electrode_dataset output is a datatable ──
  Error in ``[.data.table`(data_1, , `:=`(Recording_identifier, recording_identifier), by = Electrode)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─MEAanalysis::create_electrode_dataset(...) at test-create_electrode_dataset.R:4:3
   2.   ├─data_1[, `:=`(Recording_identifier, recording_identifier), by = Electrode]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-create_electrode_dataset.R:12:3'): create_electrode_dataset column classes are correct ──
  Error in ``[.data.table`(data_1, , `:=`(Recording_identifier, recording_identifier), by = Electrode)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─MEAanalysis::create_electrode_dataset(...) at test-create_electrode_dataset.R:12:3
   2.   ├─data_1[, `:=`(Recording_identifier, recording_identifier), by = Electrode]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-create_electrode_dataset.R:31:3'): create_electrode_dataset output does not contain missing values ──
  Error in ``[.data.table`(data_1, , `:=`(Recording_identifier, recording_identifier), by = Electrode)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─MEAanalysis::create_electrode_dataset(...) at test-create_electrode_dataset.R:31:3
   2.   ├─data_1[, `:=`(Recording_identifier, recording_identifier), by = Electrode]
   3.   └─data.table:::`[.data.table`(...)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 11 ]
  Error:
  ! Test failures.
  Execution halted