Running 'spelling.R' [0s]
  Running 'testthat.R' [48s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > 
  > test_check("tsbox")
  "blabla"
  [ FAIL 6 | WARN 0 | SKIP 17 | PASS 447 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (16)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-date_utils.R:34:3): df aggregation using date_ functions is working ──
  <dplyr:::mutate_error/rlang_error/error/condition>
  Error in `mutate(., time = as.Date(date_month(time)))`: Problem while computing `time = as.Date(date_month(time))`.
  Caused by error in `.POSIXct()`:
  ! unused argument (origin = "1970-01-01")
  Backtrace:
       ▆
    1. ├─... %>% ts_na_omit() at test-date_utils.R:34:2
    2. ├─tsbox::ts_na_omit(.)
    3. │ └─tsbox::ts_dts(x)
    4. ├─dplyr::ungroup(.)
    5. ├─dplyr::summarize(., value = mean(value))
    6. ├─dplyr::group_by(., id, time)
    7. ├─dplyr::mutate(., time = as.Date(date_month(time)))
    8. ├─dplyr:::mutate.data.frame(., time = as.Date(date_month(time)))
    9. │ └─dplyr:::mutate_cols(.data, dplyr_quosures(...), caller_env = caller_env())
   10. │   ├─base::withCallingHandlers(...)
   11. │   └─mask$eval_all_mutate(quo)
   12. ├─base::as.Date(date_month(time))
   13. ├─tsbox:::date_month(time)
   14. │ ├─base::as.POSIXct(z, origin = "1970-01-01", tz = attr(x, "tzone"))
   15. │ └─base::as.POSIXct.Date(...)
   16. └─base::.handleSimpleError(...)
   17.   └─dplyr (local) h(simpleError(msg, call))
   18.     └─rlang::abort(...)
  ── Error (test-tricky.R:9:3): Latest tricky stuff works. ───────────────────────
  Error in `.POSIXct(unclass(x) * 86400, tz = tz, ...)`: unused argument (origin = "1970-01-01")
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-tricky.R:9:2
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_ts(...)
    5. │ ├─base::stopifnot(ts_boxable(x))
    6. │ └─tsbox::ts_boxable(x)
    7. │   └─supported_classes() %in% class(x)
    8. ├─base::subset(...)
    9. └─tsbox::ts_c(...)
   10.   └─tsbox:::unify_time_class(ll.dts)
   11.     └─base::lapply(ll[cl == "Date"], make_date_posixct)
   12.       └─tsbox (local) FUN(X[[i]], ...)
   13.         ├─base::as.POSIXct(...)
   14.         └─base::as.POSIXct.Date(...)
  ── Error (test-tricky.R:31:3): Some trickier stuff works. ──────────────────────
  Error in `.POSIXct(unclass(x) * 86400, tz = tz, ...)`: unused argument (origin = "1970-01-01")
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(...) at test-tricky.R:31:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_c(EuStockMarkets, mdeaths, fdeaths)
   5.   └─tsbox:::unify_time_class(ll.dts)
   6.     └─base::lapply(ll[cl == "Date"], make_date_posixct)
   7.       └─tsbox (local) FUN(X[[i]], ...)
   8.         ├─base::as.POSIXct(...)
   9.         └─base::as.POSIXct.Date(...)
  ── Error (test-tricky.R:81:3): Non unique colnames work fine ───────────────────
  Error in `.POSIXct(unclass(x) * 86400, tz = tz, ...)`: unused argument (origin = "1970-01-01")
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-tricky.R:81:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_c(mdeaths, EuStockMarkets, ts_tbl(ts_c(mdeaths, EuStockMarkets)))
    5. ├─tsbox::ts_tbl(ts_c(mdeaths, EuStockMarkets))
    6. │ ├─base::stopifnot(ts_boxable(x))
    7. │ └─tsbox::ts_boxable(x)
    8. │   └─supported_classes() %in% class(x)
    9. └─tsbox::ts_c(mdeaths, EuStockMarkets)
   10.   └─tsbox:::unify_time_class(ll.dts)
   11.     └─base::lapply(ll[cl == "Date"], make_date_posixct)
   12.       └─tsbox (local) FUN(X[[i]], ...)
   13.         ├─base::as.POSIXct(...)
   14.         └─base::as.POSIXct.Date(...)
  ── Error (test-ts_high_freq.R:34:3): heuristic high frequency data works ───────
  Error in `.POSIXct(unclass(x) * 86400, tz = tz, ...)`: unused argument (origin = "1970-01-01")
  Backtrace:
      ▆
   1. └─tsbox::ts_ts(...) at test-ts_high_freq.R:34:2
   2.   └─tsbox:::ts_ts_dts(ts_dts(x))
   3.     └─tsbox:::date_time_to_tsp(wx[[1]])
   4.       └─tsbox:::date_year(x[1])
   5.         ├─base::as.POSIXct(z, origin = "1970-01-01", tz = attr(x, "tzone"))
   6.         └─base::as.POSIXct.Date(...)
  ── Error (test-ts_scale.R:7:3): ts_scale does not modify time column ───────────
  Error in `.POSIXct(unclass(x) * 86400, tz = tz, ...)`: unused argument (origin = "1970-01-01")
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-ts_scale.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_c(AirPassengers, EuStockMarkets[, "DAX"])
   5.   └─tsbox:::unify_time_class(ll.dts)
   6.     └─base::lapply(ll[cl == "Date"], make_date_posixct)
   7.       └─tsbox (local) FUN(X[[i]], ...)
   8.         ├─base::as.POSIXct(...)
   9.         └─base::as.POSIXct.Date(...)
  
  [ FAIL 6 | WARN 0 | SKIP 17 | PASS 447 ]
  Error: Test failures
  Execution halted