Running ‘testthat.R’ [107s/133s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(recipes)
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > 
  > test_check("recipes")
  
  Attaching package: 'rsample'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  Attaching package: 'tidyselect'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  Attaching package: 'rlang'
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_null, is_true
  
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: MASS
  
  Attaching package: 'MASS'
  
  The following object is masked from 'package:dplyr':
  
      select
  
  Loading required package: class
  Loading required package: robustbase
  Loading required package: sfsmisc
  
  Attaching package: 'sfsmisc'
  
  The following object is masked from 'package:dplyr':
  
      last
  
  Loading required package: geometry
  
  Attaching package: 'tidyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  
  Attaching package: 'Matrix'
  
  The following objects are masked from 'package:tidyr':
  
      expand, pack, unpack
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (21)
  • mixOmics cannot be loaded (9)
  • utils::packageVersion("recipes") > "0.1.13" is TRUE (16)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_classdist.R:14:3): defaults ─────────────────────────────────────
  Error in `FUN(x, aperm(array(STATS, dims[perm]), order(perm)), ...)`: non-numeric argument to binary operator
  Backtrace:
      █
   1. ├─recipes::prep(rec, training = iris, verbose = FALSE) test_classdist.R:14:2
   2. └─recipes:::prep.recipe(rec, training = iris, verbose = FALSE)
   3.   ├─recipes::bake(x$steps[[i]], new_data = training)
   4.   └─recipes:::bake.step_classdist(x$steps[[i]], new_data = training)
   5.     └─base::lapply(object$objects, mah_by_class, x = new_data[, x_cols])
   6.       └─recipes:::FUN(X[[i]], ...)
   7.         └─stats::mahalanobis(x, param$center, param$scale)
   8.           └─base::sweep(x, 2L, center)
  ── Error (test_classdist.R:55:3): alt args ─────────────────────────────────────
  Error in `FUN(x, aperm(array(STATS, dims[perm]), order(perm)), ...)`: non-numeric argument to binary operator
  Backtrace:
      █
   1. ├─recipes::prep(rec, training = iris, verbose = FALSE) test_classdist.R:55:2
   2. └─recipes:::prep.recipe(rec, training = iris, verbose = FALSE)
   3.   ├─recipes::bake(x$steps[[i]], new_data = training)
   4.   └─recipes:::bake.step_classdist(x$steps[[i]], new_data = training)
   5.     └─base::lapply(object$objects, mah_by_class, x = new_data[, x_cols])
   6.       └─recipes:::FUN(X[[i]], ...)
   7.         └─stats::mahalanobis(x, param$center, param$scale)
   8.           └─base::sweep(x, 2L, center)
  ── Error (test_classdist.R:75:3): printing ─────────────────────────────────────
  Error in `FUN(x, aperm(array(STATS, dims[perm]), order(perm)), ...)`: non-numeric argument to binary operator
  Backtrace:
       █
    1. ├─testthat::expect_output(prep(rec, training = iris, verbose = TRUE)) test_classdist.R:75: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. ├─recipes::prep(rec, training = iris, verbose = TRUE)
   11. └─recipes:::prep.recipe(rec, training = iris, verbose = TRUE)
   12.   ├─recipes::bake(x$steps[[i]], new_data = training)
   13.   └─recipes:::bake.step_classdist(x$steps[[i]], new_data = training)
   14.     └─base::lapply(object$objects, mah_by_class, x = new_data[, x_cols])
   15.       └─recipes:::FUN(X[[i]], ...)
   16.         └─stats::mahalanobis(x, param$center, param$scale)
   17.           └─base::sweep(x, 2L, center)
  ── Error (test_classdist.R:82:3): prefix ───────────────────────────────────────
  Error in `FUN(x, aperm(array(STATS, dims[perm]), order(perm)), ...)`: non-numeric argument to binary operator
  Backtrace:
      █
   1. ├─recipes::prep(rec, training = iris, verbose = FALSE) test_classdist.R:82:2
   2. └─recipes:::prep.recipe(rec, training = iris, verbose = FALSE)
   3.   ├─recipes::bake(x$steps[[i]], new_data = training)
   4.   └─recipes:::bake.step_classdist(x$steps[[i]], new_data = training)
   5.     └─base::lapply(object$objects, mah_by_class, x = new_data[, x_cols])
   6.       └─recipes:::FUN(X[[i]], ...)
   7.         └─stats::mahalanobis(x, param$center, param$scale)
   8.           └─base::sweep(x, 2L, center)
  ── Error (test_depth.R:18:3): defaults ─────────────────────────────────────────
  Error in `x[i, ] - t(data)`: non-numeric argument to binary operator
  Backtrace:
      █
   1. └─base::lapply(split_up, spatial, y = iris[, 1:4]) test_depth.R:18:2
   2.   └─recipes:::FUN(X[[i]], ...)
   3.     └─ddalpha::depth.spatial(x = y, data = x) test_depth.R:15:13
   4.       └─base::t(lambda %*% (x[i, ] - t(data)))
  
  [ FAIL 5 | WARN 0 | SKIP 46 | PASS 1663 ]
  Error: Test failures
  Execution halted