Running ‘testthat.R’ [120s/138s]
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(GENEAcore)
  > 
  > test_check("GENEAcore")
  Processing file 1/1 : 10Hz_calibration_file.bin
  [1] "File read time: 0.07 seconds"
  [1] "MPI creation time: 0 seconds"
  [1] "Non-movement detection time: 0.42 seconds"
  [1] "Auto-calibration calculation time: 0.68 seconds"
  [1] "Transitions detection time: 2.37 seconds"
  Processing Day 1 of 2
  Start_index: 0 End_index: 287990
  [1] "Reading 287990 rows of raw data time: 1.16 seconds"
  [1] "Apply calibration time: 0.07 seconds"
  [1] "Apply calculations time: 0.84 seconds"
  [1] "Epoch creation time: 6.46 seconds"
  [1] "Epoch steps calculation time: 38.91 seconds"
  [1] "Event creation time: 0.42 seconds"
  [1] "Event steps calculation time: 2.81 seconds"
  Processing Day 2 of 2
  Start_index: 287990 End_index: 503990
  [1] "Reading 216000 rows of raw data time: 0.81 seconds"
  [1] "Apply calibration time: 0.04 seconds"
  [1] "Apply calculations time: 0.46 seconds"
  [1] "Epoch creation time: 4.2 seconds"
  [1] "Epoch steps calculation time: 52.98 seconds"
  [1] "Event creation time: 0.33 seconds"
  [1] "Event steps calculation time: 2.03 seconds"
  [1] "Total epoch/event creation time: 113.18 seconds"
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 30 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-MPI_calibrate.R:136:3'): (code run outside of `test_that()`) ───
  Error in `gzfile(file, mode)`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::eval(...)
   2.   └─base::eval(...)
   3.     └─GENEAcore::create_MPI(binfile, binfile_path, output_folder) at test-MPI_calibrate.R:136:3
   4.       └─base::saveRDS(...)
   5.         └─base::gzfile(file, mode)
  ── Error ('test-MPI_create.R:23:3'): (code run outside of `test_that()`) ───────
  Error in `gzfile(file, mode)`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::eval(...)
   2.   └─base::eval(...)
   3.     └─GENEAcore::create_MPI(binfile_10Hz, binfile_name, output_folder) at test-MPI_create.R:23:3
   4.       └─base::saveRDS(...)
   5.         └─base::gzfile(file, mode)
  ── Error ('test-sample_binfile.R:26:3'): (code run outside of `test_that()`) ───
  Error in `gzfile(file, mode)`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::eval(...)
   2.   └─base::eval(...)
   3.     └─GENEAcore::sample_binfile(binfile, binfile_path, output_folder) at test-sample_binfile.R:26:3
   4.       └─GENEAcore::create_MPI(binfile, binfile_path, output_folder)
   5.         └─base::saveRDS(...)
   6.           └─base::gzfile(file, mode)
  ── Error ('test-step_counter.R:14:3'): (code run outside of `test_that()`) ─────
  Error in `gzfile(file, mode)`: cannot open the connection
  Backtrace:
      ▆
   1. └─base::eval(...)
   2.   └─base::eval(...)
   3.     └─GENEAcore::create_MPI(binfile_50, binfile_path_50, output_folder) at test-step_counter.R:14:3
   4.       └─base::saveRDS(...)
   5.         └─base::gzfile(file, mode)
  
  [ FAIL 4 | WARN 4 | SKIP 0 | PASS 30 ]
  Error: Test failures
  Execution halted