Running ‘testthat.R’ [6s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rpf)
  Loading required package: parallel
  > 
  > test_check("rpf")
  ── 1. Failure: fit w/ mcar (@test-fit.R#94)  ───────────────────────────────────
  got$n not equal to 101.
  1/1 mismatches
  [1] 84 - 101 == -17
  
  ── 2. Failure: fit w/ mcar (@test-fit.R#95)  ───────────────────────────────────
  got$rms.p not equal to -1.87.
  1/1 mismatches
  [1] -0.46 - -1.87 == 1.41
  
  ── 3. Failure: fit w/ mcar (@test-fit.R#97)  ───────────────────────────────────
  got$pearson.p not equal to -1.46.
  1/1 mismatches
  [1] -0.439 - -1.46 == 1.02
  
  ── 4. Failure: fit w/ mcar (@test-fit.R#113)  ──────────────────────────────────
  `stat` not equal to `Estat`.
  20/20 mismatches (average diff: 4.9)
  [1]  2.54 -  6.68 ==  -4.14
  [2] 10.53 -  6.87 ==   3.66
  [3]  4.86 -  9.60 ==  -4.74
  [4] 10.91 - 14.31 ==  -3.40
  [5]  2.77 - 11.74 ==  -8.97
  [6]  3.19 - 11.63 ==  -8.44
  [7]  1.93 - 15.05 == -13.12
  [8]  8.71 -  2.08 ==   6.63
  [9] 12.71 -  6.16 ==   6.55
  ...
  
  ── 5. Failure: ct1997 2tier (@test-ld.R#75)  ───────────────────────────────────
  `got` not equal to c(1.49, 1.34, 2.79, -1.54).
  4/4 mismatches (average diff: 1.42)
  [1]  1.79 -  1.49 ==  0.303
  [2] -2.81 -  1.34 == -4.152
  [3]  3.62 -  2.79 ==  0.827
  [4] -1.14 - -1.54 ==  0.396
  
  ── 6. Failure: multinomialFit full info, simple w/ missingness (@test-multinomia
  got$statistic not equal to 1115.63.
  1/1 mismatches
  [1] 527 - 1116 == -589
  
  ── 7. Failure: multinomialFit full info, simple w/ missingness (@test-multinomia
  got$df not equal to 710.
  1/1 mismatches
  [1] 721 - 710 == 11
  
  ── 8. Failure: multinomialFit full info, simple w/ missingness (@test-multinomia
  got$pval not equal to -45.7.
  1/1 mismatches
  [1] -8.8e-09 - -45.7 == 45.7
  
  ── 9. Failure: multinomialFit full info, simple w/ missingness (@test-multinomia
  got$statistic not equal to 414.691.
  1/1 mismatches
  [1] 331 - 415 == -83.9
  
  ── 10. Failure: multinomialFit full info, simple w/ missingness (@test-multinomi
  got$df not equal to 710.
  1/1 mismatches
  [1] 721 - 710 == 11
  
  ── 11. Failure: multinomialFit full info, simple w/ missingness (@test-multinomi
  got$n not equal to 521.
  1/1 mismatches
  [1] 530 - 521 == 9
  
  ── 12. Failure: multinomialFit full info, simple w/ missingness (@test-multinomi
  got$statistic not equal to 253.39.
  1/1 mismatches
  [1] 226 - 253 == -27.7
  
  ── 13. Failure: multinomialFit full info, simple w/ missingness (@test-multinomi
  got$df not equal to 585.
  1/1 mismatches
  [1] 631 - 585 == 46
  
  ── 14. Failure: multinomialFit full info, simple w/ missingness (@test-multinomi
  got$n not equal to 598.
  1/1 mismatches
  [1] 594 - 598 == -4
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 362 SKIPPED: 0 FAILED: 14
  1. Failure: fit w/ mcar (@test-fit.R#94) 
  2. Failure: fit w/ mcar (@test-fit.R#95) 
  3. Failure: fit w/ mcar (@test-fit.R#97) 
  4. Failure: fit w/ mcar (@test-fit.R#113) 
  5. Failure: ct1997 2tier (@test-ld.R#75) 
  6. Failure: multinomialFit full info, simple w/ missingness (@test-multinomial.R#54) 
  7. Failure: multinomialFit full info, simple w/ missingness (@test-multinomial.R#55) 
  8. Failure: multinomialFit full info, simple w/ missingness (@test-multinomial.R#56) 
  9. Failure: multinomialFit full info, simple w/ missingness (@test-multinomial.R#59) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted