Running ‘testthat.R’ [66s/77s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(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
  
  > 
  > test_check("fabletools")
  Loading required package: fabletools
  ── 1. Error: Out-of-sample accuracy (@test-accuracy.R#52)  ─────────────────────
  Could not find response variable(s) in the fable: value
  Backtrace:
    1. testthat::expect_warning(accuracy(fbl, head(us_deaths)), "12 observations are missing between 1978 Jan and 1978 Dec")
    7. fabletools:::accuracy.fbl_ts(fbl, head(us_deaths))
   13. dplyr:::transmute.data.frame(...)
   15. fabletools:::mutate.fbl_ts(.data, ..., .keep = "none")
   17. fabletools:::as_fable.tbl_ts(...)
   18. fabletools:::validate_fable(fbl)
  
  ── 2. Error: fable dplyr verbs (@test-fable.R#17)  ─────────────────────────────
  A valid tsibble must have distinct rows identified by key and index.
  ℹ Please use `duplicates()` to check the duplicated rows.
  Backtrace:
    1. dplyr::filter(., key == "mdeaths")
    8. dplyr::select(., index, .model, value, .distribution)
   17. dplyr:::dplyr_col_select(.data, loc, names(loc))
   19. fabletools:::`[.fbl_ts`(.data, loc)
   21. fabletools:::as_fable.tbl_df(...)
   24. tsibble:::as_tsibble.tbl_df(x, ...)
   25. tsibble::build_tsibble(...)
   26. tsibble:::validate_tsibble(...)
  
  ── 3. Failure: features() (@test-features.R#23)  ───────────────────────────────
  `.` not equal to c("a", "b", "V1").
  1/3 mismatches
  x[3]: "...3"
  y[3]: "V1"
  
  ── 4. Error: generate (@test-generate.R#6)  ────────────────────────────────────
  `levels.yearmonth()` not supported.
  Backtrace:
    9. generics::generate(.)
   11. fabletools:::map2(...)
   12. base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
   14. fabletools:::generate.mdl_ts(...)
    5. fabletools:::map(...)
   13. fabletools:::invoke("rbind", .)
   26. base::rbind(deparse.level, ...)
   28. vctrs:::levels.vctrs_vctr(xj)
   29. vctrs:::stop_unsupported(x, "levels")
   30. vctrs:::stop_vctrs(...)
  
  ── 5. Error: generate seed setting (@test-generate.R#31)  ──────────────────────
  `levels.yearmonth()` not supported.
  Backtrace:
    1. testthat::expect_equal(...)
   10. generics::generate(., seed = seed)
   14. fabletools:::map2(...)
   15. base::mapply(.f, .x, .y, MoreArgs = list(...), SIMPLIFY = FALSE)
   17. fabletools:::generate.mdl_ts(...)
    6. fabletools:::map(...)
   14. fabletools:::invoke("rbind", .)
   29. base::rbind(deparse.level, ...)
   31. vctrs:::levels.vctrs_vctr(xj)
   32. vctrs:::stop_unsupported(x, "levels")
   33. vctrs:::stop_vctrs(...)
  
  ── 6. Failure: reconciliation (@test-reconciliation.R#35)  ─────────────────────
  Expectation did not fail
  
  ── 7. Failure: reconciliation (@test-reconciliation.R#49)  ─────────────────────
  fc_agg_reconciled$value[48 + (1:24)] not equal to +....
  24/24 mismatches (average diff: 69.9)
  [1] 2704 - 2732 == -28.8
  [2] 2710 - 2771 == -61.8
  [3] 2475 - 2554 == -78.4
  [4] 1963 - 2026 == -63.0
  [5] 1577 - 1572 ==   4.3
  [6] 1385 - 1411 == -25.5
  [7] 1239 - 1326 == -86.8
  [8] 1090 - 1165 == -75.1
  [9] 1092 - 1174 == -82.3
  ...
  
  ── 8. Failure: reconciliation (@test-reconciliation.R#53)  ─────────────────────
  Expectation did not fail
  
  ── 9. Failure: reconciliation (@test-reconciliation.R#64)  ─────────────────────
  fc_agg_reconciled$value[48 + (1:24)] not equal to +....
  24/24 mismatches (average diff: 69.9)
  [1] 2704 - 2732 == -28.8
  [2] 2710 - 2771 == -61.8
  [3] 2475 - 2554 == -78.4
  [4] 1963 - 2026 == -63.0
  [5] 1577 - 1572 ==   4.3
  [6] 1385 - 1411 == -25.5
  [7] 1239 - 1326 == -86.8
  [8] 1090 - 1165 == -75.1
  [9] 1092 - 1174 == -82.3
  ...
  
  ── 10. Failure: reconciliation (@test-reconciliation.R#68)  ────────────────────
  Expectation did not fail
  
  ── 11. Failure: reconciliation (@test-reconciliation.R#79)  ────────────────────
  fc_agg_reconciled$value[48 + (1:24)] not equal to +....
  24/24 mismatches (average diff: 69.9)
  [1] 2704 - 2732 == -28.8
  [2] 2710 - 2771 == -61.8
  [3] 2475 - 2554 == -78.4
  [4] 1963 - 2026 == -63.0
  [5] 1577 - 1572 ==   4.3
  [6] 1385 - 1411 == -25.5
  [7] 1239 - 1326 == -86.8
  [8] 1090 - 1165 == -75.1
  [9] 1092 - 1174 == -82.3
  ...
  
  ── 12. Failure: reconciliation (@test-reconciliation.R#83)  ────────────────────
  Expectation did not fail
  
  ── 13. Failure: reconciliation (@test-reconciliation.R#94)  ────────────────────
  fc_agg_reconciled$value[48 + (1:24)] not equal to +....
  24/24 mismatches (average diff: 69.9)
  [1] 2704 - 2732 == -28.8
  [2] 2710 - 2771 == -61.8
  [3] 2475 - 2554 == -78.4
  [4] 1963 - 2026 == -63.0
  [5] 1577 - 1572 ==   4.3
  [6] 1385 - 1411 == -25.5
  [7] 1239 - 1326 == -86.8
  [8] 1090 - 1165 == -75.1
  [9] 1092 - 1174 == -82.3
  ...
  
  ── 14. Failure: reconciliation (@test-reconciliation.R#98)  ────────────────────
  Expectation did not fail
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 272 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 14 ]
  1. Error: Out-of-sample accuracy (@test-accuracy.R#52) 
  2. Error: fable dplyr verbs (@test-fable.R#17) 
  3. Failure: features() (@test-features.R#23) 
  4. Error: generate (@test-generate.R#6) 
  5. Error: generate seed setting (@test-generate.R#31) 
  6. Failure: reconciliation (@test-reconciliation.R#35) 
  7. Failure: reconciliation (@test-reconciliation.R#49) 
  8. Failure: reconciliation (@test-reconciliation.R#53) 
  9. Failure: reconciliation (@test-reconciliation.R#64) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted