Running ‘testthat.R’ [33s/84s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(missCompare)
  
  Attaching package: 'missCompare'
  
  The following object is masked from 'package:stats':
  
      simulate
  
  > 
  > test_check("missCompare")
  [1] "random replacement imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=2430519 on localhost:11156 at 16:49:39.149
  starting worker pid=2430521 on localhost:11156 at 16:49:39.194
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=2434236 on localhost:11156 at 16:49:45.341
  starting worker pid=2434234 on localhost:11156 at 16:49:45.451
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=2440798 on localhost:11156 at 16:49:56.381
  starting worker pid=2440799 on localhost:11156 at 16:49:56.382
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=2448501 on localhost:11156 at 16:50:07.007
  starting worker pid=2448502 on localhost:11156 at 16:50:07.028
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "ITERATION 1 OF TOTAL 1 - IN PROGRESS"
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=2468908 on localhost:11156 at 16:50:38.730
  starting worker pid=2468907 on localhost:11156 at 16:50:38.738
  starting worker pid=2471607 on localhost:11156 at 16:50:42.781
  starting worker pid=2471605 on localhost:11156 at 16:50:42.895
  starting worker pid=2476346 on localhost:11156 at 16:50:50.066
  starting worker pid=2476347 on localhost:11156 at 16:50:50.074
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 35 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test.imp_simulation.R:17:3'): simulation runs without errors ──────
  `impute_simulated(...)` threw an error.
  Message: subscript out of bounds
  Class:   subscriptOutOfBoundsError/error/condition
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test.imp_simulation.R:17:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_error(...)
    4. │ └─testthat:::quasi_capture(...)
    5. │   ├─testthat (local) .capture(...)
    6. │   │ └─base::withCallingHandlers(...)
    7. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. └─missCompare::impute_simulated(...)
    9.   ├─base::as.data.frame(test_aregImpute(sim$Simulated_matrix, list = res))
   10.   └─missCompare::test_aregImpute(sim$Simulated_matrix, list = res)
   11.     ├─utils::capture.output(results <- lapply(list, aregImpute_imp))
   12.     │ └─base::withVisible(...elt(i))
   13.     └─base::lapply(list, aregImpute_imp)
   14.       └─missCompare (local) FUN(X[[i]], ...)
   15.         └─Hmisc::aregImpute(...)
   16.           └─Hmisc::areg(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 35 ]
  Error: Test failures
  Execution halted