Running ‘testthat.R’ [68s/111s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(parsnip)
  > 
  > test_check("parsnip")
  [17:37:16] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:17] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:17] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:17] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:20] WARNING: amalgamation/../src/c_api/c_api.cc:718: `ntree_limit` is deprecated, use `iteration_range` instead.
  [17:37:20] WARNING: amalgamation/../src/c_api/c_api.cc:718: `ntree_limit` is deprecated, use `iteration_range` instead.
  [17:37:21] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'binary:logistic' was changed from 'error' to 'logloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:21] WARNING: amalgamation/../src/c_api/c_api.cc:718: `ntree_limit` is deprecated, use `iteration_range` instead.
  [17:37:21] WARNING: amalgamation/../src/c_api/c_api.cc:718: `ntree_limit` is deprecated, use `iteration_range` instead.
  [17:37:25] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [17:37:26] WARNING: amalgamation/../src/learner.cc:1115: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
  [1]	training-auc:0.971816 
  [2]	training-auc:0.986139 
  [3]	training-auc:0.989558 
  [4]	training-auc:0.992312 
  [5]	training-auc:0.994991 
  [6]	training-auc:0.995823 
  [7]	training-auc:0.996544 
  [8]	training-auc:0.996359 
  [9]	training-auc:0.996507 
  [10]	training-auc:0.997450 
  [1]	training-auc:0.971816 
  [2]	training-auc:0.986139 
  [3]	training-auc:0.989558 
  [4]	training-auc:0.992312 
  [5]	training-auc:0.994991 
  [6]	training-auc:0.995823 
  [7]	training-auc:0.996544 
  [8]	training-auc:0.996359 
  [9]	training-auc:0.996507 
  [10]	training-auc:0.997450 
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (14)
  • flexsurv cannot be loaded (2)
  • nnet cannot be loaded (8)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-augment.R:10:3): regression models ──────────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─x %>% fit_xy(mtcars[, -1], mtcars$mpg) test-augment.R:10:2
   2. ├─generics::fit_xy(., mtcars[, -1], mtcars$mpg)
   3. └─parsnip::fit_xy.model_spec(., mtcars[, -1], mtcars$mpg)
   4.   └─parsnip:::xy_form(...)
   5.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test-augment.R:53:3): classification models ──────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─x %>% fit_xy(two_class_dat[, -3], two_class_dat$Class) test-augment.R:53:2
   2. ├─generics::fit_xy(., two_class_dat[, -3], two_class_dat$Class)
   3. └─parsnip::fit_xy.model_spec(., two_class_dat[, -3], two_class_dat$Class)
   4.   └─parsnip:::xy_form(...)
   5.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_convert_data.R:464:3): data frame x, vector y ───────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(mtcars[, -1], mtcars$mpg, remove_intercept = TRUE) test_convert_data.R:464:2
  ── Error (test_convert_data.R:497:3): data frame x, 1 col data frame y ─────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(...) test_convert_data.R:497:2
  ── Failure (test_convert_data.R:525:3): matrix x, 1 col data frame y ───────────
  `expected` not equal to observed$data.
  Names: 1 string mismatch
  ── Failure (test_convert_data.R:526:3): matrix x, 1 col data frame y ───────────
  formula("mpg ~ .") not equal to observed$formula.
  formulas differ in contents
  ── Error (test_convert_data.R:532:3): data frame x, 1 col matrix y ─────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(...) test_convert_data.R:532:2
  ── Error (test_convert_data.R:544:3): data frame x, 2 col data frame y ─────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(...) test_convert_data.R:544:2
  ── Error (test_convert_data.R:567:3): 1 col data frame x, 1 col data frame y ───
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(...) test_convert_data.R:567:2
  ── Error (test_convert_data.R:604:3): data frame x, factor y ───────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. └─parsnip::.convert_xy_to_form_fit(hpc[, -5], hpc$class) test_convert_data.R:604:2
  ── Error (test_decision_tree.R:156:3): argument checks for data dimensions ─────
  Error: `x` cannot be a vector.
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test_decision_tree.R:156:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spec %>% fit_xy(x = penguins[, -6], y = penguins$body_mass_g)
    7. ├─generics::fit_xy(., x = penguins[, -6], y = penguins$body_mass_g)
    8. └─parsnip::fit_xy.model_spec(., x = penguins[, -6], y = penguins$body_mass_g)
    9.   └─parsnip:::xy_form(...)
   10.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_descriptors.R:164:3): numeric y and dummy vars ──────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test_descriptors.R:164:2
   2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─parsnip:::eval_descrs(get_descr_xy(x = hpc[, 1:4], y = hpc$class))
   5.   └─base::lapply(descrs, do.call, list()) test_descriptors.R:29:2
   6.     ├─base:::FUN(X[[i]], ...)
   7.     └─(function () ...
   8.       └─parsnip::.convert_xy_to_form_fit(x, y, remove_intercept = TRUE)
  ── Failure (test_fit_interfaces.R:43:3): single column df for issue #129 ───────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_fit_interfaces.R:43:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─`%>%`(...)
    7. ├─generics::fit_xy(., x = mtcars[, 2:4], y = mtcars[, 1, drop = FALSE])
    8. └─parsnip::fit_xy.model_spec(...)
    9.   └─parsnip:::xy_form(...)
   10.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_fit_interfaces.R:50:3): single column df for issue #129 ───────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test_fit_interfaces.R:50:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─`%>%`(...)
    7. ├─generics::fit_xy(...)
    8. └─parsnip::fit_xy.model_spec(...)
    9.   └─parsnip:::xy_form(...)
   10.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_fit_interfaces.R:57:3): single column df for issue #129 ─────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─`%>%`(...) test_fit_interfaces.R:57:2
   2. ├─generics::fit_xy(., x = mtcars[, 2:4], y = mtcars$mpg)
   3. └─parsnip::fit_xy.model_spec(., x = mtcars[, 2:4], y = mtcars$mpg)
   4.   └─parsnip:::xy_form(...)
   5.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_fit_interfaces.R:73:3): unknown modes ─────────────────────────
  `fit_xy(mars_spec, x = mtcars[, -1], y = mtcars[, 1])` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_fit_interfaces.R:73:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(mars_spec, x = mtcars[, -1], y = mtcars[, 1])
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_fit_interfaces.R:77:3): unknown modes ─────────────────────────
  `fit_xy(mars_spec, x = lending_club[, 1:2], y = lending_club$Class)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_fit_interfaces.R:77:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(mars_spec, x = lending_club[, 1:2], y = lending_club$Class)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_fit_interfaces.R:84:3): elapsed time parsnip mods ───────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─`%>%`(...) test_fit_interfaces.R:84:2
   2. ├─generics::fit_xy(., x = mtcars[, 2:4], y = mtcars$mpg)
   3. └─parsnip::fit_xy.model_spec(., x = mtcars[, 2:4], y = mtcars$mpg)
   4.   └─parsnip:::xy_form(...)
   5.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_linear_reg.R:230:3): lm execution ─────────────────────────────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_linear_reg.R:230:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_linear_reg.R:281:3): lm execution ─────────────────────────────
  `res <- fit_xy(hpc_basic, x = hpc[, 1:2], y = hpc[3:4], control = ctrl)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_linear_reg.R:281:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(hpc_basic, x = hpc[, 1:2], y = hpc[3:4], control = ctrl)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_linear_reg.R:301:3): lm prediction ──────────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_linear_reg.R:301:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_linear_reg.R:337:3): lm intervals ───────────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_linear_reg.R:337:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_linear_reg.R:365:3): newdata error trapping ─────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_linear_reg.R:365:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_logistic_reg.R:313:3): glm execution ──────────────────────────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_logistic_reg.R:313:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_logistic_reg.R:322:3): glm execution ────────────────────────────
  Error in `print(res)`: object 'res' not found
  Backtrace:
       █
    1. ├─testthat::expect_output(print(res), "parsnip model object") test_logistic_reg.R:322:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. └─base::print(res)
  ── Error (test_logistic_reg.R:354:3): glm prediction ───────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_logistic_reg.R:354:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_logistic_reg.R:370:3): glm probabilities ────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_logistic_reg.R:370:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_mars.R:141:3): mars execution ─────────────────────────────────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_mars.R:141:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_mars.R:176:3): mars execution ─────────────────────────────────
  `res <- fit_xy(hpc_basic, x = hpc[, 1:2], y = hpc[3:4], control = ctrl)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_mars.R:176:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(hpc_basic, x = hpc[, 1:2], y = hpc[3:4], control = ctrl)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_mars.R:208:3): mars prediction ──────────────────────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_mars.R:208:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_nearest_neighbor_kknn.R:40:3): kknn execution ─────────────────
  `... <- NULL` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_nearest_neighbor_kknn.R:40:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_nearest_neighbor_kknn.R:50:3): kknn execution ───────────────────
  Error in `has_multi_predict(res)`: object 'res' not found
  Backtrace:
      █
   1. ├─testthat::expect_true(has_multi_predict(res)) test_nearest_neighbor_kknn.R:50:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─parsnip::has_multi_predict(res)
  ── Error (test_nearest_neighbor_kknn.R:71:3): kknn prediction ──────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_nearest_neighbor_kknn.R:71:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_nearest_neighbor_kknn.R:128:3): kknn multi-predict ──────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_nearest_neighbor_kknn.R:128:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_nearest_neighbor_kknn.R:215:3): argument checks for data dimensions ──
  Error: `x` cannot be a vector.
  Backtrace:
       █
    1. ├─testthat::expect_warning(...) test_nearest_neighbor_kknn.R:215:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─spec %>% fit_xy(x = penguins[, -6], y = penguins$body_mass_g)
    7. ├─generics::fit_xy(., x = penguins[, -6], y = penguins$body_mass_g)
    8. └─parsnip::fit_xy.model_spec(., x = penguins[, -6], y = penguins$body_mass_g)
    9.   └─parsnip:::xy_form(...)
   10.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_nullmodel.R:126:3): nullmodel prediction ──────────────────────
  setNames(mw_pred, paste0(".pred_", names(mw_pred))) not equal to predict(res, mtcars[1:5, ]).
  Names: 2 string mismatches
  ── Failure (test_svm_linear.R:313:3): linear svm regression: kernlab ───────────
  `res <- fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$input_fields)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_linear.R:313:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$input_fields)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_linear.R:322:3): linear svm regression: kernlab ─────────────
  Error in `has_multi_predict(res)`: object 'res' not found
  Backtrace:
      █
   1. ├─testthat::expect_false(has_multi_predict(res)) test_svm_linear.R:322:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─parsnip::has_multi_predict(res)
  ── Error (test_svm_linear.R:367:3): linear svm regression prediction: kernlab ──
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_linear.R:367:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_svm_linear.R:393:3): linear svm classification: kernlab ───────
  `fit_xy(cls_mod, control = ctrl, x = hpc_no_m[, -5], y = hpc_no_m$class)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_linear.R:393:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_linear.R:445:3): linear svm classification prediction: kernlab ──
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_linear.R:445:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_svm_poly.R:132:3): svm poly regression ────────────────────────
  `res <- fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$compounds)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_poly.R:132:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$compounds)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_poly.R:142:3): svm poly regression ──────────────────────────
  Error in `has_multi_predict(res)`: object 'res' not found
  Backtrace:
      █
   1. ├─testthat::expect_false(has_multi_predict(res)) test_svm_poly.R:142:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─parsnip::has_multi_predict(res)
  ── Error (test_svm_poly.R:189:3): svm poly regression prediction ───────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_poly.R:189:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_svm_poly.R:210:3): svm poly classification ────────────────────
  `fit_xy(cls_mod, control = ctrl, x = hpc[, -5], y = hpc$class)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_poly.R:210:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(cls_mod, control = ctrl, x = hpc[, -5], y = hpc$class)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_poly.R:263:3): svm poly classification probabilities ────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_poly.R:263:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_svm_rbf.R:113:3): svm poly regression ─────────────────────────
  `res <- fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$input_fields)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_rbf.R:113:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(reg_mod, control = ctrl, x = hpc[, 2:4], y = hpc$input_fields)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_rbf.R:122:3): svm poly regression ───────────────────────────
  Error in `has_multi_predict(res)`: object 'res' not found
  Backtrace:
      █
   1. ├─testthat::expect_false(has_multi_predict(res)) test_svm_rbf.R:122:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─parsnip::has_multi_predict(res)
  ── Error (test_svm_rbf.R:167:3): svm rbf regression prediction ─────────────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_rbf.R:167:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Failure (test_svm_rbf.R:193:3): svm rbf classification ──────────────────────
  `fit_xy(cls_mod, control = ctrl, x = hpc_no_m[, -5], y = hpc_no_m$class)` threw an error.
  Message: `x` cannot be a vector.
  Class:   rlang_error/error/condition
  Backtrace:
      █
   1. ├─testthat::expect_error(...) test_svm_rbf.R:193:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(...)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::xy_form(...)
   9.     └─parsnip::.convert_xy_to_form_fit(...)
  ── Error (test_svm_rbf.R:245:3): svm rbf classification probabilities ──────────
  Error: `x` cannot be a vector.
  Backtrace:
      █
   1. ├─generics::fit_xy(...) test_svm_rbf.R:245:2
   2. └─parsnip::fit_xy.model_spec(...)
   3.   └─parsnip:::xy_form(...)
   4.     └─parsnip::.convert_xy_to_form_fit(...)
  
  [ FAIL 51 | WARN 0 | SKIP 24 | PASS 952 ]
  Error: Test failures
  Execution halted