Running ‘spelling.R’
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(plsmod)
  Loading required package: parsnip
  > 
  > test_check("plsmod")
  ── 1. Failure: classification model fitting (@test-class-pls.R#30)  ────────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "classification")
   10. generics::fit_xy(., x = x_tr, y = y_tr)
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 2. Error: classification model fitting (@test-class-pls.R#39)  ──────────────
  object 'parsnip_pls_da' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_pls_da$fit$loadings, uni_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ── 3. Failure: classification model fitting (@test-class-spls.R#31)  ───────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3, predictor_prop = 0.5)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "classification")
   10. generics::fit_xy(., x = x_tr, y = y_tr)
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 4. Error: classification model fitting (@test-class-spls.R#40)  ─────────────
  object 'parsnip_spls_da' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_spls_da$fit$loadings, uni_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ── 5. Failure: Multivariate model fitting (@test-reg-pls.R#30)  ────────────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "regression")
   10. generics::fit_xy(., x = x_tr, y = y_tr)
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 6. Error: Multivariate model fitting (@test-reg-pls.R#39)  ──────────────────
  object 'parsnip_pls_multi' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_pls_multi$fit$loadings, multi_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ── 7. Failure: Univariate model fitting (@test-reg-pls.R#80)  ──────────────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "regression")
   10. generics::fit_xy(., x = x_tr, y = y_tr[[1]])
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 8. Error: Univariate model fitting (@test-reg-pls.R#89)  ────────────────────
  object 'parsnip_pls_uni' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_pls_uni$fit$loadings, uni_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ── 9. Failure: Multivariate model fitting (@test-reg-spls.R#23)  ───────────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3, predictor_prop = 1)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "regression")
   10. generics::fit_xy(., x = x_tr, y = y_tr)
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 10. Error: Multivariate model fitting (@test-reg-spls.R#32)  ────────────────
  object 'parsnip_spls_multi' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_spls_multi$fit$loadings, multi_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ── 11. Failure: Univariate model fitting (@test-reg-spls.R#73)  ────────────────
  `... <- NULL` threw an error.
  Message: argument "default" is missing, with no default
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. plsmod::pls(num_comp = 3, predictor_prop = 1)
    2. parsnip::set_engine(., "mixOmics")
    2. parsnip::set_mode(., "regression")
   10. generics::fit_xy(., x = x_tr, y = y_tr[[1]])
   16. parsnip:::check_xy_interface(eval_env$x, eval_env$y, cl, object)
   17. parsnip:::allow_sparse(model)
   18. parsnip::get_from_env(paste0(class(x)[1], "_encoding"))
   19. rlang::env_get(mod_env, items)
  
  ── 12. Error: Univariate model fitting (@test-reg-spls.R#82)  ──────────────────
  object 'parsnip_spls_uni' not found
  Backtrace:
   1. testthat::expect_equal(parsnip_spls_uni$fit$loadings, uni_model$loadings)
   2. testthat::quasi_label(enquo(object), label, arg = "object")
   3. rlang::eval_bare(expr, quo_get_env(quo))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 12 ]
  1. Failure: classification model fitting (@test-class-pls.R#30) 
  2. Error: classification model fitting (@test-class-pls.R#39) 
  3. Failure: classification model fitting (@test-class-spls.R#31) 
  4. Error: classification model fitting (@test-class-spls.R#40) 
  5. Failure: Multivariate model fitting (@test-reg-pls.R#30) 
  6. Error: Multivariate model fitting (@test-reg-pls.R#39) 
  7. Failure: Univariate model fitting (@test-reg-pls.R#80) 
  8. Error: Univariate model fitting (@test-reg-pls.R#89) 
  9. Failure: Multivariate model fitting (@test-reg-spls.R#23) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted