Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [147s/236s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(detrendr)
  > 
  > test_check("detrendr")
  ── 1. Failure: best_tau works (@test-best_params.R#30)  ────────────────────────
  `bt` not equal to 6618.
  1/1 mismatches
  [1] 152 - 6618 == -6466
  
  ── 2. Failure: myrpois works on linux (@test-myrs.R#22)  ───────────────────────
  `x` not equal to `ans`.
  10/11 mismatches (average diff: 1.9)
  [1]  -6 - -4 == -2
  [2]  -6 - -2 == -4
  [3]  -5 - -3 == -2
  [4]  -1 - -3 ==  2
  [5]  -3 - -2 == -1
  [7]   1 -  0 ==  1
  [8]   2 -  1 ==  1
  [9]   4 -  5 == -1
  [10]  4 -  1 ==  3
  ...
  
  ── 3. Failure: myrbern works on linux (@test-myrs.R#52)  ───────────────────────
  `x` not equal to c(0, 1, 1, 0, 0, 1, 1).
  3/7 mismatches (average diff: 1)
  [2] 0 - 1 == -1
  [3] 0 - 1 == -1
  [4] 1 - 0 ==  1
  
  ── 4. Failure: rfromboxes works on linux (@test-myrs.R#78)  ────────────────────
  `x` not equal to c(1, 2, 2, 3, 2).
  2/5 mismatches (average diff: 1)
  [4] 2 - 3 == -1
  [5] 3 - 2 ==  1
  
  ── 5. Failure: rtoboxes works on linux (@test-myrs.R#128)  ─────────────────────
  `x` not equal to c(2, 6, 0, 2).
  2/4 mismatches (average diff: 2)
  [2] 4 - 6 == -2
  [3] 2 - 0 ==  2
  
  ── 6. Failure: `myarray2vec()` works (@test-utils.R#131)  ──────────────────────
  `myarray2vec(...)` threw an error with unexpected message.
  Expected match: "You are requesting an array index outside the\\s?dimension of.+your array.+Row 3 of `iarr` is `c\\(3, 2,\\s?4, 5\\)` and `dim` is `c\\(4, 4,.+4, 4\\)`, so element 4\\s?of that row, 5, is too big as it is.+bigger than\\s?element 4 of `dim`, 4."
  Actual message: "You are requesting an array index outside the dimension of\nyour array.\n    * Row 1 of `iarr` is `c(5, 3, 3, 1)` and `dim` is `c(4, 4,\n      4, 4)`, so element 1 of that row, 5, is too big as it is\n      bigger than element 1 of `dim`, 4."
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 211 SKIPPED: 9 FAILED: 6
  1. Failure: best_tau works (@test-best_params.R#30) 
  2. Failure: myrpois works on linux (@test-myrs.R#22) 
  3. Failure: myrbern works on linux (@test-myrs.R#52) 
  4. Failure: rfromboxes works on linux (@test-myrs.R#78) 
  5. Failure: rtoboxes works on linux (@test-myrs.R#128) 
  6. Failure: `myarray2vec()` works (@test-utils.R#131) 
  
  Error: testthat unit tests failed
  Execution halted