Running ‘testthat.R’ [161s/194s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(caretEnsemble)
  > 
  > test_check("caretEnsemble")
  1. Error: caretList errors for bad models (@test-caretList.R#84) ---------------
  caret:train failed for all models.  Please inspect your data.
  1: suppressWarnings({
         sink <- capture.output({
             expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = bad_bad, trControl = my_control))
             expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control))
             expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = bad_bad, trControl = my_control, 
                 continue_on_fail = TRUE))
             expect_is(caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control, 
                 continue_on_fail = TRUE), "caretList")
         })
     }) at testthat/test-caretList.R:84
  2: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  3: capture.output({
         expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = bad_bad, trControl = my_control))
         expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control))
         expect_error(caretList(iris[, 1:4], iris[, 5], tuneList = bad_bad, trControl = my_control, 
             continue_on_fail = TRUE))
         expect_is(caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control, 
             continue_on_fail = TRUE), "caretList")
     }) at testthat/test-caretList.R:85
  4: evalVis(expr)
  5: withVisible(eval(expr, pf))
  6: eval(expr, pf)
  7: eval(expr, pf)
  8: expect_is(caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control, 
         continue_on_fail = TRUE), "caretList")
  9: klass(object)
  10: paste(class(x), collapse = "/")
  11: caretList(iris[, 1:4], iris[, 5], tuneList = good_bad, trControl = my_control, continue_on_fail = TRUE)
  12: stop("caret:train failed for all models.  Please inspect your data.")
  
  testthat results ================================================================
  OK: 436 SKIPPED: 26 FAILED: 1
  1. Error: caretList errors for bad models (@test-caretList.R#84) 
  
  Error: testthat unit tests failed
  Execution halted