Running ‘testthat.R’ [30s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fable)
  Loading required package: fabletools
  > 
  > test_check("fable")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-arima.R:36:3): Manual ARIMA selection ─────────────────────────
  coef(fable_fit$model[[1]]$fit$model) not identical to coef(stats_fit).
  target is NULL, current is numeric
  ── Failure (test-arima.R:41:3): Manual ARIMA selection ─────────────────────────
  model_sum(fable_fit$model[[1]]) not identical to "ARIMA(0,1,1)(0,1,1)[12]".
  1/1 mismatches
  x[1]: "NULL model"
  y[1]: "ARIMA(0,1,1)(0,1,1)[12]"
  ── Failure (test-arima.R:49:3): Manual ARIMA selection ─────────────────────────
  fc_mean(fable_fc$value) not equivalent to unclass(stats_fc$pred).
  24/24 mismatches (average diff: NaN)
  [1] NA -  8336 == NA
  [2] NA -  7532 == NA
  [3] NA -  8315 == NA
  [4] NA -  8617 == NA
  [5] NA -  9489 == NA
  [6] NA -  9860 == NA
  [7] NA - 10907 == NA
  [8] NA - 10087 == NA
  [9] NA -  9165 == NA
  ...
  ── Failure (test-arima.R:54:3): Manual ARIMA selection ─────────────────────────
  tidy(fable_fit)$estimate not equivalent to coef(stats_fit).
  Lengths differ: 0 is not 2
  ── Failure (test-arima.R:58:3): Manual ARIMA selection ─────────────────────────
  fitted(fable_fit)$.fitted not equivalent to unclass(USAccDeaths - residuals(stats_fit)).
  72/72 mismatches (average diff: NaN)
  [1] NA -  9002 == NA
  [2] NA -  8104 == NA
  [3] NA -  8926 == NA
  [4] NA -  9136 == NA
  [5] NA - 10015 == NA
  [6] NA - 10824 == NA
  [7] NA - 11314 == NA
  [8] NA - 10742 == NA
  [9] NA -  9713 == NA
  ...
  ── Failure (test-arima.R:62:3): Manual ARIMA selection ─────────────────────────
  residuals(fable_fit)$.resid not equivalent to unclass(residuals(stats_fit)).
  72/72 mismatches (average diff: NaN)
  [1] NA - 5.200 == NA
  [2] NA - 1.628 == NA
  [3] NA - 1.760 == NA
  [4] NA - 1.496 == NA
  [5] NA - 1.990 == NA
  [6] NA - 2.400 == NA
  [7] NA - 2.512 == NA
  [8] NA - 1.658 == NA
  [9] NA - 0.498 == NA
  ...
  ── Failure (test-arima.R:71:3): Manual ARIMA selection ─────────────────────────
  `report\(fable_fit\)` does not match "log likelihood=-425.44".
  Actual value: "Series: value \\nModel: NULL model \\nNULL model"
  Backtrace:
      █
   1. └─testthat::expect_output(report(fable_fit), "log likelihood=-425.44") test-arima.R:71:2
   2.   └─testthat::expect_match(...)
  ── Error (test-arima.R:78:3): Manual ARIMA selection ───────────────────────────
  Error: Problem with `mutate()` input `interpolated`.
  ✖ no applicable method for 'interpolate' applied to an object of class "null_mdl"
  ℹ Input `interpolated` is `map2(model, new_data, interpolate, ...)`.
  Backtrace:
       █
    1. ├─fable_fit %>% interpolate(USAccDeaths_miss) test-arima.R:78:2
    2. ├─generics::interpolate(., USAccDeaths_miss)
    3. ├─fabletools:::interpolate.mdl_df(., USAccDeaths_miss)
    4. │ ├─dplyr::transmute(...)
    5. │ └─dplyr:::transmute.data.frame(...)
    6. │   ├─dplyr::mutate(.data, ..., .keep = "none")
    7. │   └─dplyr:::mutate.data.frame(.data, ..., .keep = "none")
    8. │     └─dplyr:::mutate_cols(.data, ...)
    9. │       ├─base::withCallingHandlers(...)
   10. │       └─mask$eval_all_mutate(quo)
   11. ├─fabletools:::map2(model, new_data, interpolate, ...)
   12. │ └─base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
   13. │   ├─(function (object, ...) ...
   14. │   └─fabletools:::interpolate.mdl_ts(dots[[1L]][[1L]], dots[[2L]][[1L]])
   15. │     └─generics::interpolate(...)
   16. └─base::.handleSimpleError(...)
   17.   └─dplyr:::h(simpleError(msg, call))
  ── Failure (test-arima.R:93:3): Fixed ARIMA coefficients ───────────────────────
  tidy(fable_fit)$estimate not identical to c(0.3, 3, 20).
  Lengths differ: 0 is not 3
  ── Failure (test-arima.R:100:3): ARIMA with bad inputs ─────────────────────────
  ``%>%`(...)` produced unexpected warnings.
  Expected match: Only one special for `pdq\\(\\)` and `PDQ\\(\\)` is allowed
  Actual values:
  * 1 error encountered for ARIMA(mdeaths ~ 1 + pdq(2, 0, 0) + pdq(d = 1) + PDQ(2, 1, 0))
  [1] cannot add binding of 'lag' to the base environment
  
  ── Failure (test-arima.R:124:3): ARIMA with bad inputs ─────────────────────────
  `... <- NULL` produced unexpected warnings.
  Expected match: Model specification induces a quadratic or higher order polynomial trend
  Actual values:
  * 1 error encountered for poly
  [1] cannot add binding of 'lag' to the base environment
  
  ── Failure (test-arima.R:130:3): ARIMA with bad inputs ─────────────────────────
  model_sum(fit$poly[[1]]) not identical to "ARIMA(2,1,0)(2,1,0)[12] w/ poly".
  1/1 mismatches
  x[1]: "NULL model"
  y[1]: "ARIMA(2,1,0)(2,1,0)[12] w/ poly"
  
  [ FAIL 12 | WARN 12 | SKIP 1 | PASS 88 ]
  Error: Test failures
  Execution halted