Running 'testthat.R' [8s/11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(heuristica)
  > 
  > test_check("heuristica")
  [1] "ttb"
     user  system elapsed 
    0.211   0.000   0.227 
  [1] "reg"
     user  system elapsed 
    0.199   0.000   0.216 
  == Failed tests ================================================================
  -- Error (test-cue_validity.R:46:1): (code run outside of `test_that()`) -------
  Error: data length differs from size of matrix: [6 != 2 x 2]
  Backtrace:
       x
    1. +-testthat::expect_equal(...) test-cue_validity.R:46:0
    2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-heuristica::cueValidityComplete(...)
    5. | \-heuristica::cueValidityAppliedToColumns(...)
    6. |   \-base::sapply(...)
    7. |     \-base::lapply(X = X, FUN = FUN, ...)
    8. |       \-heuristica:::FUN(X[[i]], ...)
    9. |         \-heuristica::cueValidity(data[, criterion_col], data[, col], replaceNanWith = replaceNanWith)
   10. |           \-Hmisc::rcorr.cens(criterion, cue, outx = TRUE)
   11. |             \-survival::is.Surv(S)
   12. \-base::matrix(c(5, 4, 1, 0, 0, 1), 2, 2)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 690 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [6s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(heuristica)
  > 
  > test_check("heuristica")
  [1] "ttb"
     user  system elapsed 
    0.101   0.000   0.157 
  [1] "reg"
     user  system elapsed 
    0.124   0.000   0.217 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cue_validity.R:46:1): (code run outside of `test_that()`) ───────
  Error: data length differs from size of matrix: [6 != 2 x 2]
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-cue_validity.R:46:0
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─heuristica::cueValidityComplete(...)
    5. │ └─heuristica::cueValidityAppliedToColumns(...)
    6. │   └─base::sapply(...)
    7. │     └─base::lapply(X = X, FUN = FUN, ...)
    8. │       └─heuristica:::FUN(X[[i]], ...)
    9. │         └─heuristica::cueValidity(data[, criterion_col], data[, col], replaceNanWith = replaceNanWith)
   10. │           └─Hmisc::rcorr.cens(criterion, cue, outx = TRUE)
   11. │             └─survival::is.Surv(S)
   12. └─base::matrix(c(5, 4, 1, 0, 0, 1), 2, 2)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 690 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(heuristica)
  > 
  > test_check("heuristica")
  [1] "ttb"
     user  system elapsed 
    0.214   0.000   0.254 
  [1] "reg"
     user  system elapsed 
    0.217   0.000   0.271 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cue_validity.R:46:1): (code run outside of `test_that()`) ───────
  Error: data length differs from size of matrix: [6 != 2 x 2]
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-cue_validity.R:46:0
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─heuristica::cueValidityComplete(...)
    5. │ └─heuristica::cueValidityAppliedToColumns(...)
    6. │   └─base::sapply(...)
    7. │     └─base::lapply(X = X, FUN = FUN, ...)
    8. │       └─heuristica:::FUN(X[[i]], ...)
    9. │         └─heuristica::cueValidity(data[, criterion_col], data[, col], replaceNanWith = replaceNanWith)
   10. │           └─Hmisc::rcorr.cens(criterion, cue, outx = TRUE)
   11. │             └─survival::is.Surv(S)
   12. └─base::matrix(c(5, 4, 1, 0, 0, 1), 2, 2)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 690 ]
  Error: Test failures
  Execution halted
Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(heuristica)
  > 
  > test_check("heuristica")
  [1] "ttb"
     user  system elapsed 
    0.234   0.000   0.327 
  [1] "reg"
     user  system elapsed 
    0.222   0.001   0.249 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cue_validity.R:46:1): (code run outside of `test_that()`) ───────
  Error: data length differs from size of matrix: [6 != 2 x 2]
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-cue_validity.R:46:0
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─heuristica::cueValidityComplete(...)
    5. │ └─heuristica::cueValidityAppliedToColumns(...)
    6. │   └─base::sapply(...)
    7. │     └─base::lapply(X = X, FUN = FUN, ...)
    8. │       └─heuristica:::FUN(X[[i]], ...)
    9. │         └─heuristica::cueValidity(data[, criterion_col], data[, col], replaceNanWith = replaceNanWith)
   10. │           └─Hmisc::rcorr.cens(criterion, cue, outx = TRUE)
   11. │             └─survival::is.Surv(S)
   12. └─base::matrix(c(5, 4, 1, 0, 0, 1), 2, 2)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 690 ]
  Error: Test failures
  Execution halted