Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [34s/44s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > 
  > test_check("tsbox")
  Failed with error:  'there is no package called 'xts''
  "forecast"
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  "dygraphs"
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  Failed with error:  'there is no package called 'xts''
  [ FAIL 16 | WARN 0 | SKIP 19 | PASS 186 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (16)
  • dygraphs cannot be loaded (1)
  • empty test (1)
  • timeSeries cannot be loaded (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-issues.R:15:3): regular zoo and xts can be processed ────────────
  Error in `ts_dts.zoo(x)`: requireNamespace("xts") is not TRUE
  Backtrace:
       ▆
    1. ├─testthat::expect_is(ts_tbl(z), "tbl") at test-issues.R:15:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─tsbox::ts_tbl(z)
    5.   ├─tsbox:::ts_tbl_dts(ts_dts(x))
    6.   │ ├─tibble::as_tibble(as.data.frame(ts_data.table(x)))
    7.   │ ├─base::as.data.frame(ts_data.table(x))
    8.   │ └─tsbox::ts_data.table(x)
    9.   │   ├─base::stopifnot(ts_boxable(x))
   10.   │   └─tsbox::ts_boxable(x)
   11.   │     └─supported_classes() %in% class(x)
   12.   ├─tsbox::ts_dts(x)
   13.   └─tsbox:::ts_dts.zoo(x)
   14.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-nonstandard_cnames.R:43:3): first object determines col order and col names (#166) ──
  Error: Additional packages needed. To install, use:
  
    install.packages("forecast")
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(names(ts_forecast(ts2)), names(ts2)) at test-nonstandard_cnames.R:43:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_forecast(ts2)
   5.   └─tsbox::load_suggested("forecast")
  ── Error (test-object_conversion.R:192:3): colname guessing works as expected ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-object_conversion.R:192:2
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_ts(ts_xts(ts_df(x.df)))
    5. │ ├─base::stopifnot(ts_boxable(x))
    6. │ └─tsbox::ts_boxable(x)
    7. │   └─supported_classes() %in% class(x)
    8. └─tsbox::ts_xts(ts_df(x.df))
    9.   └─tsbox:::ts_xts_dts(ts_dts(x))
   10.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:8:3): conversion produces right classes for monthly series ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ts_xts(monthly_series), "xts") at test-subannual.R:8:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_xts(monthly_series)
   5.   └─tsbox:::ts_xts_dts(ts_dts(x))
   6.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:42:3): conversion between objects works as expected for monthly series ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. └─tsbox::ts_xts(x.ts) at test-subannual.R:42:2
   2.   └─tsbox:::ts_xts_dts(ts_dts(x))
   3.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:76:3): conversion produces right classes for regular series ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ts_xts(regular_series), "xts") at test-subannual.R:76:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_xts(regular_series)
   5.   └─tsbox:::ts_xts_dts(ts_dts(x))
   6.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:110:3): conversion between objects works as expected for regular series ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. └─tsbox::ts_xts(x.ts) at test-subannual.R:110:2
   2.   └─tsbox:::ts_xts_dts(ts_dts(x))
   3.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:144:3): conversion produces right classes for quarterly series ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ts_xts(quarter_series), "xts") at test-subannual.R:144:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_xts(quarter_series)
   5.   └─tsbox:::ts_xts_dts(ts_dts(x))
   6.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:178:3): conversion between objects works as expected: austres ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. └─tsbox::ts_xts(x.ts) at test-subannual.R:178:2
   2.   └─tsbox:::ts_xts_dts(ts_dts(x))
   3.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:214:3): conversion produces right classes for series with NAs ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. ├─testthat::expect_s3_class(ts_xts(irregular_series), "xts") at test-subannual.R:214:2
   2. │ └─testthat::quasi_label(enquo(object), arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─tsbox::ts_xts(irregular_series)
   5.   └─tsbox:::ts_xts_dts(ts_dts(x))
   6.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-subannual.R:250:3): conversion between objects works as expected for series with NAs ──
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. └─tsbox::ts_xts(x.ts) at test-subannual.R:250:2
   2.   └─tsbox:::ts_xts_dts(ts_dts(x))
   3.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-tricky.R:6:1): (code run outside of `test_that()`) ──────────────
  Error: Additional packages needed. To install, use:
  
    install.packages("dygraphs")
  Backtrace:
      ▆
   1. └─tsbox::ts_dygraphs(AirPassengers) at test-tricky.R:6:0
   2.   └─tsbox::load_suggested("dygraphs")
  ── Error (test-ts_bind.R:65:3): ts_chain gives correct results ─────────────────
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
      ▆
   1. ├─tsbox::ts_chain(...) at test-ts_bind.R:65:2
   2. ├─tsbox::ts_span(ts_xts(mdeaths), start = "1975-01-01", end = "1975-12-01")
   3. │ └─tsbox::ts_dts(x)
   4. └─tsbox::ts_xts(mdeaths)
   5.   └─tsbox:::ts_xts_dts(ts_dts(x))
   6.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-ts_frequency.R:6:3): ts_frequency survives freq conversion ──────
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ts_frequency.R:6:2
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_ts(ts_frequency(ts_xts(EuStockMarkets), 1))
    5. │ ├─base::stopifnot(ts_boxable(x))
    6. │ └─tsbox::ts_boxable(x)
    7. │   └─supported_classes() %in% class(x)
    8. ├─tsbox::ts_frequency(ts_xts(EuStockMarkets), 1)
    9. │ ├─base::stopifnot(ts_boxable(x))
   10. │ └─tsbox::ts_boxable(x)
   11. │   └─supported_classes() %in% class(x)
   12. └─tsbox::ts_xts(EuStockMarkets)
   13.   └─tsbox:::ts_xts_dts(ts_dts(x))
   14.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-ts_long_wide.R:23:3): ts_wide works has correct time stamps. ────
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(ts_wide(ts_xts(a)), ts_xts(a)) at test-ts_long_wide.R:23:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_wide(ts_xts(a))
    5. │ ├─base::stopifnot(ts_boxable(x))
    6. │ └─tsbox::ts_boxable(x)
    7. │   └─supported_classes() %in% class(x)
    8. └─tsbox::ts_xts(a)
    9.   └─tsbox:::ts_xts_dts(ts_dts(x))
   10.     └─base::stopifnot(requireNamespace("xts"))
  ── Error (test-ts_pc.R:14:3): colname guessing works as expected ───────────────
  Error in `ts_xts_dts(ts_dts(x))`: requireNamespace("xts") is not TRUE
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-ts_pc.R:14:2
    2. │ └─testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tsbox::ts_ts(ts_xts(ts_df(ts_pc(x.df))))
    5. │ ├─base::stopifnot(ts_boxable(x))
    6. │ └─tsbox::ts_boxable(x)
    7. │   └─supported_classes() %in% class(x)
    8. └─tsbox::ts_xts(ts_df(ts_pc(x.df)))
    9.   └─tsbox:::ts_xts_dts(ts_dts(x))
   10.     └─base::stopifnot(requireNamespace("xts"))
  
  [ FAIL 16 | WARN 0 | SKIP 19 | PASS 186 ]
  Error: Test failures
  Execution halted