Running ‘testthat.R’ [179s/262s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cutpointr)
  > 
  > test_check("cutpointr")
  ── 1. Failure: Correct cutpoints with example data (@test-cutpointr.R#239)  ────
  optcut$specificity not equal to 1.
  names for target but not for current
  
  ── 2. Failure: Correct cutpoints with example data (@test-cutpointr.R#240)  ────
  round(optcut$sensitivity, 2) not equal to 0.58.
  names for target but not for current
  
  ── 3. Failure: Results for constrained metrics are equal to results by OptimalCu
  round(opt_cut_cp$specificity, 4) not equal to 0.85.
  names for target but not for current
  
  ── 4. Failure: Results for constrained metrics are equal to results by OptimalCu
  opt_cut_cp$sensitivity not equal to opt_cut_cp$sens_constrain.
  names for target but not for current
  
  ── 5. Failure: Results for constrained metrics are equal to results by OptimalCu
  round(opt_cut_cp$sensitivity, 4) not equal to 0.85.
  names for target but not for current
  
  ── 6. Failure: Results for constrained metrics are equal to results by OptimalCu
  opt_cut_cp$specificity not equal to opt_cut_cp$spec_constrain.
  names for target but not for current
  
  ── 7. Failure: Main metric gets replaced correctly when ties are broken (@test-c
  cp2$accuracy not equal to cp2$acc.
  names for current but not for target
  
  ── 8. Failure: boot_ci works correctly (@test-cutpointr.R#1378)  ───────────────
  round(bci$values, 2) not equal to c(1, 3.27).
  names for target but not for current
  
  ── 9. Failure: boot_test works correctly (@test-cutpointr.R#1396)  ─────────────
  round(bt$p, 3) not equal to 0.249.
  names for target but not for current
  
  ── 10. Failure: boot_test works correctly (@test-cutpointr.R#1397)  ────────────
  round(bt$z, 2) not equal to 1.15.
  names for target but not for current
  
  ── 11. Failure: boot_test works correctly (@test-cutpointr.R#1404)  ────────────
  btg$d not equal to bt$d.
  names for current but not for target
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 379 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 11 ]
  1. Failure: Correct cutpoints with example data (@test-cutpointr.R#239) 
  2. Failure: Correct cutpoints with example data (@test-cutpointr.R#240) 
  3. Failure: Results for constrained metrics are equal to results by OptimalCutpoints (@test-cutpointr.R#563) 
  4. Failure: Results for constrained metrics are equal to results by OptimalCutpoints (@test-cutpointr.R#564) 
  5. Failure: Results for constrained metrics are equal to results by OptimalCutpoints (@test-cutpointr.R#570) 
  6. Failure: Results for constrained metrics are equal to results by OptimalCutpoints (@test-cutpointr.R#571) 
  7. Failure: Main metric gets replaced correctly when ties are broken (@test-cutpointr.R#1023) 
  8. Failure: boot_ci works correctly (@test-cutpointr.R#1378) 
  9. Failure: boot_test works correctly (@test-cutpointr.R#1396) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted