Running ‘testthat.R’ [70s/89s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pmml, quietly = T)
  > 
  > test_check("pmml")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (3)
  
  ══ Warnings ════════════════════════════════════════════════════════════════════
  ── Warning (test_pmml.ARIMA.R:45:3): .check_cpi_levels erros correctly ─────────
  no non-missing arguments to min; returning Inf
  Backtrace:
   1. testthat::expect_error(pmml(fit_0, cpi_levels = NULL), "Length of cpi_levels must be greater than 0.") test_pmml.ARIMA.R:45:2
   7. pmml::pmml.ARIMA(fit_0, cpi_levels = NULL)
   8. pmml:::.check_cpi_levels(cpi_levels)
  ── Warning (test_pmml.ARIMA.R:45:3): .check_cpi_levels erros correctly ─────────
  no non-missing arguments to max; returning -Inf
  Backtrace:
   1. testthat::expect_error(pmml(fit_0, cpi_levels = NULL), "Length of cpi_levels must be greater than 0.") test_pmml.ARIMA.R:45:2
   7. pmml::pmml.ARIMA(fit_0, cpi_levels = NULL)
   8. pmml:::.check_cpi_levels(cpi_levels)
  ── Warning (test_pmml.ARIMA.R:114:3): seasonal ARIMA model contains correct elements 1 ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_7, exact_least_squares = FALSE) test_pmml.ARIMA.R:114:2
   2. pmml::pmml.ARIMA(fit_7, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:139:3): seasonal ARIMA model contains correct elements 2 ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_8, exact_least_squares = FALSE) test_pmml.ARIMA.R:139:2
   2. pmml::pmml.ARIMA(fit_8, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:167:3): seasonal ARIMA model contains correct elements 3 ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_9, exact_least_squares = FALSE) test_pmml.ARIMA.R:167:2
   2. pmml::pmml.ARIMA(fit_9, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:209:3): Seasonal ARIMA with 0,0,0 non-seasonal component contains NonseasonalComponent with zero values ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_10, exact_least_squares = FALSE) test_pmml.ARIMA.R:209:2
   2. pmml::pmml.ARIMA(fit_10, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:228:3): Error if exact_least_squares is not logical ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. testthat::expect_error(...) test_pmml.ARIMA.R:228:2
   7. pmml::pmml.ARIMA(fit_13, exact_least_squares = "foo")
  ── Warning (test_pmml.ARIMA.R:236:3): exact_least_squares has no effect if model is non-seasonal ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_14, exact_least_squares = TRUE) test_pmml.ARIMA.R:236:2
   2. pmml::pmml.ARIMA(fit_14, exact_least_squares = TRUE)
  ── Warning (test_pmml.ARIMA.R:242:3): exact_least_squares=TRUE results in exactLeastSquares for seasonal model ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_15, exact_least_squares = TRUE) test_pmml.ARIMA.R:242:2
   2. pmml::pmml.ARIMA(fit_15, exact_least_squares = TRUE)
  ── Warning (test_pmml.ARIMA.R:254:3): exact_least_squares=FALSE results in conditionalLeastSquares for seasonal model ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_15c, exact_least_squares = FALSE) test_pmml.ARIMA.R:254:2
   2. pmml::pmml.ARIMA(fit_15c, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:266:3): seasonal models do not include CPI in Output ──
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_17, exact_least_squares = FALSE) test_pmml.ARIMA.R:266:2
   2. pmml::pmml.ARIMA(fit_17, exact_least_squares = FALSE)
  ── Warning (test_pmml.ARIMA.R:279:3): FinalOmega is 0 ──────────────────────────
  argument exact_least_squares is deprecated.
  Backtrace:
   1. pmml::pmml(fit_20, exact_least_squares = TRUE) test_pmml.ARIMA.R:279:2
   2. pmml::pmml.ARIMA(fit_20, exact_least_squares = TRUE)
  ── Warning (test_pmml.gbm.R:7:3): pmml.gbm final Segment contains modelName attribute ──
  Setting `distribution = "multinomial"` is ill-advised as it is currently broken. It exists only for backwards compatibility. Use at your own risk.
  Backtrace:
   1. gbm::gbm(...) test_pmml.gbm.R:7:2
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_pmml.miningschema.R:1:1): (code run outside of `test_that()`) ───
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─base::library(xgboost) test_pmml.miningschema.R:1:0
  ── Error (test_pmml.xgb.Booster.R:3:1): (code run outside of `test_that()`) ────
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─base::library(xgboost) test_pmml.xgb.Booster.R:3:0
  ── Error (test_schema_validation.R:9:1): (code run outside of `test_that()`) ───
  Error: there is no package called 'xgboost'
  Backtrace:
      █
   1. └─base::library(xgboost) test_schema_validation.R:9:0
  
  [ FAIL 3 | WARN 13 | SKIP 3 | PASS 226 ]
  Error: Test failures
  Execution halted