Running ‘testthat.R’ [20s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rerf)
  Loading required package: Rcpp
  > 
  > test_check("rerf")
  ── 1. Failure: Testing RandMat binary option. (@test-RandMat.R#18)  ────────────
  `a01` not equal to `rBinary`.
  6/12 mismatches (average diff: 1.33)
  [2] 4 - 2 ==  2
  [3] 5 - 3 ==  2
  [4] 1 - 2 == -1
  [6] 1 - 2 == -1
  [7] 1 - 2 == -1
  [8] 2 - 3 == -1
  
  ── 2. Failure: Testing RandMat continuous option. (@test-RandMat.R#39)  ────────
  `a02` not equal to `rContinuous`.
  6/12 mismatches (average diff: 1.33)
  [2] 4 - 2 ==  2
  [3] 5 - 3 ==  2
  [4] 1 - 2 == -1
  [6] 1 - 2 == -1
  [7] 1 - 2 == -1
  [8] 2 - 3 == -1
  
  ── 3. Failure: Testing RandMat rf option. (@test-RandMat.R#57)  ────────────────
  `a03` not equal to `rRF`.
  1/9 mismatches
  [1] 4 - 3 == 1
  
  ── 4. Failure: Testing RandMat poisson option. (@test-RandMat.R#75)  ───────────
  `a04` not equal to `rPoisson`.
  3/6 mismatches (average diff: 1.33)
  [1] 2 -  1 == 1
  [2] 4 -  3 == 1
  [5] 1 - -1 == 2
  
  ── 5. Failure: Testing RandMat frc option. (@test-RandMat.R#103)  ──────────────
  `a05` not equal to `rFRC`.
  16/27 mismatches (average diff: 1.13)
  [1]  4.000 -  3.000 ==  1.000
  [4]  3.000 -  5.000 == -2.000
  [5]  2.000 -  3.000 == -1.000
  [6]  4.000 -  1.000 ==  3.000
  [7]  2.000 -  1.000 ==  1.000
  [8]  4.000 -  3.000 ==  1.000
  [9]  1.000 -  5.000 == -4.000
  [19] 0.230 - -0.628 ==  0.858
  [20] 0.842 -  0.230 ==  0.612
  ...
  
  ── 6. Failure: Testing RandMat frcn option. (@test-RandMat.R#131)  ─────────────
  `a07` not equal to `rFRCN`.
  7/27 mismatches (average diff: 1.86)
  [1] 4 - 3 ==  1
  [4] 3 - 5 == -2
  [5] 2 - 3 == -1
  [6] 4 - 1 ==  3
  [7] 2 - 1 ==  1
  [8] 4 - 3 ==  1
  [9] 1 - 5 == -4
  
  ── 7. Failure: Testing RandMat ts-patch option. (@test-RandMat.R#155)  ─────────
  `a08` not equal to `rTS`.
  Lengths differ: 48 is not 33
  
  ── 8. Failure: Testing RandMat image-patch option. (@test-RandMat.R#193)  ──────
  `a09` not equal to `rIP`.
  Lengths differ: 450 is not 246
  
  ── 9. Failure: Testing RandMat image-control option. (@test-RandMat.R#236)  ────
  `a10` not equal to `rIC`.
  Lengths differ: 450 is not 246
  
  ── 10. Failure: Testing RandMat custom option. (@test-RandMat.R#264)  ──────────
  `a11` not equal to `rC`.
  9/30 mismatches (average diff: 3.67)
  [1]   3 - 10 == -7
  [3]   9 -  3 ==  6
  [4]   2 -  1 ==  1
  [5]   4 -  8 == -4
  [6]   1 -  3 == -2
  [7]   7 -  2 ==  5
  [8]   4 -  6 == -2
  [9]  10 -  8 ==  2
  [10]  9 -  5 ==  4
  
  ── 11. Failure: Iris OOB Predictions (@test-predictions.R#47)  ─────────────────
  `accuracy` not equal to 143/150.
  1/1 mismatches
  [1] 0.96 - 0.953 == 0.00667
  
  ── 12. Failure: Iris OOB Predictions (@test-predictions.R#56)  ─────────────────
  `accuracy` not equal to 133/150.
  1/1 mismatches
  [1] 0.873 - 0.887 == -0.0133
  
  ── 13. Failure: Iris Predictions (@test-predictions.R#67)  ─────────────────────
  `accuracy` not equal to 64/70.
  1/1 mismatches
  [1] 0.929 - 0.914 == 0.0143
  
  ── 14. Failure: Iris Predictions (@test-predictions.R#76)  ─────────────────────
  `accuracy` not equal to 63/70.
  1/1 mismatches
  [1] 0.914 - 0.9 == 0.0143
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1038 SKIPPED: 0 FAILED: 14
  1. Failure: Testing RandMat binary option. (@test-RandMat.R#18) 
  2. Failure: Testing RandMat continuous option. (@test-RandMat.R#39) 
  3. Failure: Testing RandMat rf option. (@test-RandMat.R#57) 
  4. Failure: Testing RandMat poisson option. (@test-RandMat.R#75) 
  5. Failure: Testing RandMat frc option. (@test-RandMat.R#103) 
  6. Failure: Testing RandMat frcn option. (@test-RandMat.R#131) 
  7. Failure: Testing RandMat ts-patch option. (@test-RandMat.R#155) 
  8. Failure: Testing RandMat image-patch option. (@test-RandMat.R#193) 
  9. Failure: Testing RandMat image-control option. (@test-RandMat.R#236) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted