Running ‘testthat.R’ [53s/105s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > data.table::setDTthreads(1)
  > if(require(testthat))test_check("penaltyLearning")
  Loading required package: testthat
  Loading required package: penaltyLearning
  Saving _problems/test-ROChange-aum-44.R
  Saving _problems/test-ROChange-aum-75.R
  Saving _problems/test-ROChange-aum-86.R
  Saving _problems/test-ROChange-aum-107.R
  Saving _problems/test-ROChange-aum-118.R
     problem pred.log.lambda problems
       <num>           <num>    <int>
  1:       2              -1        2
  2:       2               0        2
  Saving _problems/test-ROChange-aum-146.R
  Saving _problems/test-ROChange-aum-167.R
  Saving _problems/test-ROChange-aum-188.R
  Saving _problems/test-ROChange-aum-199.R
  Saving _problems/test-ROChange-aum-222.R
  Saving _problems/test-ROChange-aum-258.R
  Saving _problems/test-ROChange-aum-289.R
  Saving _problems/test-ROChange-no-thresh-21.R
  Saving _problems/test-ROChange-no-thresh-38.R
  Saving _problems/test-ROChange-no-thresh-38.R
  Saving _problems/test-ROChange-no-thresh-38.R
  Saving _problems/test-ROChange-no-thresh-48.R
  Saving _problems/test-ROChange-no-thresh-48.R
  Saving _problems/test-ROChange-no-thresh-48.R
  Key: <problem>
       problem   min   max
        <char> <num> <num>
  1: always-tp  -Inf  -600
  Key: <problem>
        problem   min   max
         <char> <num> <num>
  1: two-thresh  -600   Inf
  Saving _problems/test-ROChange-no-thresh-84.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-no-thresh-104.R
  Saving _problems/test-ROChange-22.R
  Saving _problems/test-ROChange-44.R
  Saving _problems/test-ROChange-63.R
  Saving _problems/test-ROChange-85.R
  Saving _problems/test-errors-51.R
  Saving _problems/test-errors-65.R
  [ FAIL 32 | WARN 6 | SKIP 0 | PASS 122 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ROChange-aum.R:44:3'): noncvx 1fp[-1,0] 1fn[0,1] ───────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:44:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:75:3'): 1fp[-1,0] 1fn[0,1] ──────────────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:75:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:86:3'): 1fp[0,0] 1fn[0,0] ───────────────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:86:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:107:3'): 1fp[-1,0] 1fn[0,1], no change ──────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:107:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:118:3'): three problems but two predictions ─────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:118:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:146:3'): 1fp[-1,0] 2fn[0,2] 1fp[-1,0] ───────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:146:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:167:3'): 1fp[-1,0] 1fn[0,1] 1fp[-1,0] ───────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:167:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:188:3'): 2fp[-2,0] 1fn[0,1] 2fp2fn(0)[-1,1] ─────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:188:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:199:3'): 2fp[-2,-1] 1fn[0,1] 2fp2fn(1)[1,2] ─────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:199:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:222:3'): 4fp(-1)[-3,-2](0)[-2,0] 1fn[0,1] 2fp2fn(0)[-1,1](1)[1,2] ──
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(models, predictions, "problem") at test-ROChange-aum.R:222:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:258:3'): auc=2 for one error curve with one loop ──
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 12/12 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(segs.dt, pred.dt, "problem") at test-ROChange-aum.R:258:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-aum.R:289:3'): aum not -Inf ───────────────────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(p, pred.dt, problem.vars = "problem") at test-ROChange-aum.R:289:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange-no-thresh.R:21:3'): problem with no thresh is OK ──────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(model.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:21:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:36:5'): inconsistent possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "possible.fn should be constant for each problem"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:36:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(inconsistent.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:37:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:36:5'): inconsistent possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "possible.fp should be constant for each problem"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:36:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(inconsistent.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:37:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:36:5'): inconsistent possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "labels should be constant for each problem"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:36:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(inconsistent.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:37:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:46:5'): negative possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "possible.fn/possible.fp/labels should be non-negative"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:46:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(negative.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:47:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:46:5'): negative possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "possible.fn/possible.fp/labels should be non-negative"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:46:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(negative.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:47:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:46:5'): negative possible.fn/possible.fp/labels is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "possible.fn/possible.fp/labels should be non-negative"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:46:5
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(negative.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:47:7
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:82:3'): problem with inconsistent min/max.log.lambda is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "max.log.lambda should be equal to the next min.log.lambda"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:82:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(inconsistent.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:83:5
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "fn should be in [0,possible.fn]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "fn should be in [0,possible.fn]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "fp should be in [0,possible.fp]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "fp should be in [0,possible.fp]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "errors should be in [0,labels]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange-no-thresh.R:102:7'): problem with fp/fn/errors out of range is an error ──
  `{ ... }` threw an error with unexpected message.
  Expected match: "errors should be in [0,labels]"
  Actual message: "attempt access index 10/10 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange-no-thresh.R:102:7
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(out.dt, pred.dt, "problem") at test-ROChange-no-thresh.R:103:9
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange.R:22:3'): AUC of reverse ROC curve is 1 ───────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 12/12 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(segs.dt, pred.dt, "problem") at test-ROChange.R:22:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Failure ('test-ROChange.R:42:3'): error for labels less than errors ─────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "errors should be in [0,labels]"
  Actual message: "attempt access index 12/12 in VECTOR_ELT"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-ROChange.R:42:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─penaltyLearning::ROChange(segs.dt, pred.dt, "problem") at test-ROChange.R:43:5
   7.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   8.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange.R:63:3'): AUC of reverse incomplete ROC curve is 1 ────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 12/12 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(segs.dt, pred.dt, "problem") at test-ROChange.R:63:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-ROChange.R:85:3'): only one prediction row even when prediction is on threshold ──
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 11/11 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::ROChange(simple.err, ok.pred, pvars) at test-ROChange.R:85:3
   2.   ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test-errors.R:51:3'): no error for finite limits ────────────────────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::targetIntervalROC(ok3, 1:3) at test-errors.R:51:3
   2.   └─penaltyLearning::ROChange(target.errors, pred.dt, "observation")
   3.     ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test-errors.R:65:3'): no error for one col vector predictions ───────
  Error in ``[.data.table`(err, , `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars)`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─penaltyLearning::targetIntervalROC(ok3, cbind(foo = 1:3)) at test-errors.R:65:3
   2.   └─penaltyLearning::ROChange(target.errors, pred.dt, "observation")
   3.     ├─err[, `:=`(next.min, c(min.log.lambda[-1], Inf)), by = problem.vars]
   4.     └─data.table:::`[.data.table`(...)
  
  [ FAIL 32 | WARN 6 | SKIP 0 | PASS 122 ]
  Error:
  ! Test failures.
  Execution halted