Running ‘testthat.R’ [122s/176s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > require(SSLR)
  Loading required package: SSLR
  > 
  > test_check("SSLR")
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test-EMLeastSquaresClassifierSSLR.R:62:5): EMLeastSquaresClassifierSSLR predictions data frame ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test) test-EMLeastSquaresClassifierSSLR.R:62:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@theta, nrow = ncol(X))
  ── Warning (test-EMLeastSquaresClassifierSSLR.R:72:5): EMLeastSquaresClassifierSSLR predictions factor ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test, type = "raw") test-EMLeastSquaresClassifierSSLR.R:72:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@theta, nrow = ncol(X))
  ── Warning (test-EntropyRegularizedLogisticRegressionSSLR.R:52:5): EntropyRegularizedLogisticRegressionSSLR predictions data frame ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test) test-EntropyRegularizedLogisticRegressionSSLR.R:52:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@w, nrow = ncol(X))
  ── Warning (test-EntropyRegularizedLogisticRegressionSSLR.R:62:5): EntropyRegularizedLogisticRegressionSSLR predictions factor ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test, type = "raw") test-EntropyRegularizedLogisticRegressionSSLR.R:62:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@w, nrow = ncol(X))
  ── Warning (test-USMLeastSquaresClassifierSSLR.R:53:5): USMLeastSquaresClassifierSSLR predictions data frame ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test) test-USMLeastSquaresClassifierSSLR.R:53:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@theta, nrow = ncol(X))
  ── Warning (test-USMLeastSquaresClassifierSSLR.R:63:5): USMLeastSquaresClassifierSSLR predictions factor ──
  data length [34] is not a sub-multiple or multiple of the number of rows [35]
  Backtrace:
    1. stats::predict(model, breast$test, type = "raw") test-USMLeastSquaresClassifierSSLR.R:63:4
   10. RSSL::predict(., x)
   11. RSSL:::.local(object, ...)
   12. base::matrix(object@theta, nrow = ncol(X))
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-Democratic.R:29:1): (code run outside of `test_that()`) ─────────
  Error: This engine requires some package installs: 'xgboost'
  Backtrace:
       █
    1. ├─m %>% fit(Wine ~ ., data = wine$train) test-Democratic.R:29:0
    2. ├─generics::fit(., Wine ~ ., data = wine$train)
    3. ├─SSLR::fit.model_sslr(., Wine ~ ., data = wine$train)
    4. │ ├─base::system.time(model <- object$fit_function(eval_env$x, eval_env$y))
    5. │ └─object$fit_function(eval_env$x, eval_env$y)
    6. │   └─SSLR:::democraticG(y, m_learners_base, m_preds_base)
    7. │     └─gen.learners[[i]](labeled, y[labeled])
    8. │       └─`%>%`(...)
    9. ├─parsnip::fit_xy(...)
   10. └─parsnip::fit_xy.model_spec(...)
   11.   └─parsnip:::check_installs(object)
  
  [ FAIL 1 | WARN 6 | SKIP 0 | PASS 163 ]
  Error: Test failures
  Execution halted