Running ‘test-all.R’
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > # These tests are more extensive and only need to run on travis, not on CRAN.
  > library(testthat)
  > library(tempdisagg)
  > 
  > test_check("tempdisagg")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_misc.R:8'): to daily works ─────────────────────────────────────
  Error: need at least two observations for frequency detection
  Backtrace:
      ▆
   1. └─tempdisagg::td(ts_df(mdeaths) ~ 1, to = "day", method = "fast") at test_misc.R:8:2
   2.   └─tsbox::ts_lag(tail(tsbox::ts_bind(lf.dt, NA), 1), by = hf.by.string)
   3.     ├─z[, lag_one(.SD), by = eval(.by)]
   4.     └─data.table:::`[.data.table`(z, , lag_one(.SD), by = eval(.by))
   5.       └─base::eval(jsub, SDenv, parent.frame())
   6.         └─base::eval(jsub, SDenv, parent.frame())
   7.           └─tsbox (local) lag_one(.SD)
   8.             └─tsbox:::check_frequency_detection(x)
   9.               └─tsbox:::stop0("need at least two observations for frequency detection")
  ── Error ('test_misc.R:21'): tsbox mode has same results as ts ─────────────────
  Error: need at least two observations for frequency detection
  Backtrace:
      ▆
   1. └─tempdisagg::td(y ~ x) at test_misc.R:21:2
   2.   └─tsbox::ts_lag(tail(tsbox::ts_bind(lf.dt, NA), 1), by = hf.by.string)
   3.     ├─z[, lag_one(.SD), by = eval(.by)]
   4.     └─data.table:::`[.data.table`(z, , lag_one(.SD), by = eval(.by))
   5.       └─base::eval(jsub, SDenv, parent.frame())
   6.         └─base::eval(jsub, SDenv, parent.frame())
   7.           └─tsbox (local) lag_one(.SD)
   8.             └─tsbox:::check_frequency_detection(x)
   9.               └─tsbox:::stop0("need at least two observations for frequency detection")
  ── Error ('test_td.R:31'): denton tsbox ────────────────────────────────────────
  Error: need at least two observations for frequency detection
  Backtrace:
       ▆
    1. ├─testthat::expect_is(...) at test_td.R:31:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─tempdisagg::td(ts_df(ts(1:8)) ~ 1, to = "quarterly", method = "denton-cholette")
    5.   └─tsbox::ts_lag(tail(tsbox::ts_bind(lf.dt, NA), 1), by = hf.by.string)
    6.     ├─z[, lag_one(.SD), by = eval(.by)]
    7.     └─data.table:::`[.data.table`(z, , lag_one(.SD), by = eval(.by))
    8.       └─base::eval(jsub, SDenv, parent.frame())
    9.         └─base::eval(jsub, SDenv, parent.frame())
   10.           └─tsbox (local) lag_one(.SD)
   11.             └─tsbox:::check_frequency_detection(x)
   12.               └─tsbox:::stop0("need at least two observations for frequency detection")
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted