Running ‘testthat.R’ [45s/53s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > 
  > test_check("tsbox")
  "blabla"
  ── 1. Error: ts_ based functions pass arguments in seasonal (@test_ts_.R#27)  ──
  Process terminated
  1: ts_seas(ts_c(mdeaths, fdeaths), x11 = "") at testthat/test_ts_.R:27
  2: ts_apply(x, ff, ...)
  3: ts_apply_dts(ts_dts(x), fun, ...)
  4: x[, fun(.SD, ...), by = eval(.by)]
  5: `[.data.table`(x, , fun(.SD, ...), by = eval(.by))
  6: fun(.SD, ...)
  7: (function(x, ...) seasonal::final(seasonal::seas(x, ...)))(ts_ts(x), ...)
  8: seasonal::final(seasonal::seas(x, ...))
  9: extract_w_na_action(object, "final")
  10: seasonal::seas(x, ...)
  11: checkX13(fail = TRUE, fullcheck = FALSE, htmlcheck = FALSE)
  12: stop("Process terminated")
  
  ── 2. Error: colname guessing works as expected (@test_ts_pc.R#14)  ────────────
  Expecting a single value: [extent=2].
  1: expect_equal(ts_pc(mdeaths), ts_ts(ts_xts(ts_df(ts_pc(x.df))))[, "mdeaths"]) at testthat/test_ts_pc.R:14
  2: quasi_label(enquo(expected), expected.label, arg = "expected")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_ts(ts_xts(ts_df(ts_pc(x.df))))
  5: stopifnot(ts_boxable(x))
  6: ts_boxable(x)
  7: supported_classes() %in% class(x)
  8: ts_xts(ts_df(ts_pc(x.df)))
  9: stopifnot(ts_boxable(x))
  10: ts_boxable(x)
  ...
  14: stopifnot(ts_boxable(x))
  15: ts_boxable(x)
  16: supported_classes() %in% class(x)
  17: ts_pc(x.df)
  18: ts_apply(ts_regular(x), function(x) {
         value <- NULL
         x[, list(time, value = 100 * (value/c(NA, value[-length(value)]) - 1))]
     })
  19: copy_class(z, x)
  20: guess_time(ans)
  21: is_time(x[[cname.i]])
  22: anytime(x, useR = TRUE)
  23: anytime_cpp(x, tz = tz, asUTC = asUTC, useR = useR, oldHeuristic = oldHeuristic)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 379 SKIPPED: 11 WARNINGS: 5 FAILED: 2
  1. Error: ts_ based functions pass arguments in seasonal (@test_ts_.R#27) 
  2. Error: colname guessing works as expected (@test_ts_pc.R#14) 
  
  Error: testthat unit tests failed
  Execution halted