Running ‘testthat.R’ [59s/85s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(AGread)
  package 'AGread' was built under R version 3.5.0
  > 
  > test_check("AGread")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_equivalence.R:56:7): file reading methods give equivalent results ──
  all(PAutilities::test_errors(AG, test1, accel_vars, 1e-04)) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test_equivalence.R:62:7): file reading methods give equivalent results ──
  `AG` not equal to `test1`.
  Component "Timestamp": Mean absolute difference: 59.33883
  Component "Accelerometer_X": Mean absolute difference: 0.2176549
  Component "Accelerometer_Y": Mean absolute difference: 0.2108431
  Component "Accelerometer_Z": Mean absolute difference: 0.3618378
  ── Error (test_equivalence.R:70:7): file reading methods give equivalent results ──
  Error: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. ├─base::suppressMessages(collapse_gt3x(AG)[seq(nrow(test2)), -c(1:2)]) test_equivalence.R:70:6
   2. │ └─base::withCallingHandlers(...)
   3. ├─AGread::collapse_gt3x(AG)
   4. └─AGread:::collapse_gt3x.RAW(AG)
   5.   └─AGread::AG_collapse(...)
  ── Failure (test_gt3x.R:17:5): gt3x file reading and operations are consistent ──
  test$RAW has changed from known value recorded in 'read_3x_raw.rds'.
  Attributes: < Component "row.names": Numeric: lengths (1458000, 16200) differ >
  Component "Timestamp": Lengths (1458000, 16200) differ (string compare on first 16200)
  Component "Timestamp": 16110 string mismatches
  Component "Accelerometer_X": Numeric: lengths (1458000, 16200) differ
  Component "Accelerometer_Y": Numeric: lengths (1458000, 16200) differ
  Component "Accelerometer_Z": Numeric: lengths (1458000, 16200) differ
  Backtrace:
      █
   1. └─testthat::expect_equal_to_reference(test$RAW, "read_3x_raw.rds") test_gt3x.R:17:4
   2.   └─testthat::expect_known_value(..., update = update)
  ── Failure (test_gt3x.R:22:5): gt3x file reading and operations are consistent ──
  test$IMU has changed from known value recorded in 'read_3x_imu.rds'.
  Attributes: < Component "row.names": Numeric: lengths (1790000, 17900) differ >
  Component "Timestamp": Lengths (1790000, 17900) differ (string compare on first 17900)
  Component "Timestamp": 17800 string mismatches
  Component "Accelerometer_X": Numeric: lengths (1790000, 17900) differ
  Component "Accelerometer_Y": Numeric: lengths (1790000, 17900) differ
  Component "Accelerometer_Z": Numeric: lengths (1790000, 17900) differ
  Component "Temperature": Numeric: lengths (1790000, 17900) differ
  Component "Gyroscope_X": Numeric: lengths (1790000, 17900) differ
  Component "Gyroscope_Y": Numeric: lengths (1790000, 17900) differ
  ...
  Backtrace:
      █
   1. └─testthat::expect_equal_to_reference(test$IMU, "read_3x_imu.rds") test_gt3x.R:22:4
   2.   └─testthat::expect_known_value(..., update = update)
  ── Error (test_gt3x.R:30:5): gt3x file reading and operations are consistent ───
  Error: missing value where TRUE/FALSE needed
  Backtrace:
      █
   1. ├─testthat::expect_equal_to_reference(...) test_gt3x.R:30:4
   2. │ └─testthat::expect_known_value(..., update = update)
   3. │   └─testthat::quasi_label(enquo(object), label, arg = "object")
   4. │     └─rlang::eval_bare(expr, quo_get_env(quo))
   5. ├─AGread::collapse_gt3x(test$RAW)
   6. └─AGread:::collapse_gt3x.RAW(test$RAW)
   7.   └─AGread::AG_collapse(...)
  
  [ FAIL 6 | WARN 0 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted