Running ‘testthat.R’ [106s/166s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > if (require(testthat)) {
  +   test_check("forecast")
  + }
  Loading required package: testthat
  Loading required package: forecast
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  • empty test (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-arfima.R:24:5): test forecast.fracdiff() ────────────────────────
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_output(summary(forecast(arfimabc)), regexp = "Forecast method: ARFIMA") test-arfima.R:24:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::summary(forecast(arfimabc))
   11. └─forecast:::summary.forecast(forecast(arfimabc))
   12.   ├─base::print(object)
   13.   └─forecast:::print.forecast(object)
   14.     ├─base::print(as.data.frame(x))
   15.     ├─base::as.data.frame(x)
   16.     └─forecast:::as.data.frame.forecast(x)
   17.       ├─base::format(tx, nsmall = nd, digits = nd)
   18.       └─base::format.default(tx, nsmall = nd, digits = nd)
   19.         └─base::prettyNum(...)
  ── Error (test-forecast.R:19:5): tests summary.forecast() and forecast.forecast() ──
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_output(summary(WWWusageforecast), regexp = "Forecast method:") test-forecast.R:19:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::summary(WWWusageforecast)
   11. └─forecast:::summary.forecast(WWWusageforecast)
   12.   ├─base::print(object)
   13.   └─forecast:::print.forecast(object)
   14.     ├─base::print(as.data.frame(x))
   15.     ├─base::as.data.frame(x)
   16.     └─forecast:::as.data.frame.forecast(x)
   17.       ├─base::format(tx, nsmall = nd, digits = nd)
   18.       └─base::format.default(tx, nsmall = nd, digits = nd)
   19.         └─base::prettyNum(...)
  ── Error (test-ggplot.R:67:5): tests for autoplot/gg functions ─────────────────
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─ggplot2::autoplot(splinefit) test-ggplot.R:67:4
    2. └─forecast:::autoplot.splineforecast(splinefit)
    3.   ├─ggplot2::autolayer(object)
    4.   └─forecast:::autolayer.forecast(object)
    5.     └─forecast:::forecast2plotdf(object, PI = PI, showgap = showgap)
    6.       ├─base::grep("Hi ", names(data))
    7.       │ └─base::is.factor(x)
    8.       ├─base::as.data.frame(model)
    9.       └─forecast:::as.data.frame.forecast(model)
   10.         ├─base::format(tx, nsmall = nd, digits = nd)
   11.         └─base::format.default(tx, nsmall = nd, digits = nd)
   12.           └─base::prettyNum(...)
  ── Error (test-mforecast.R:54:5): tests for print.mforecast() ──────────────────
  Error: invalid value 0 for 'digits' argument
  Backtrace:
       █
    1. ├─testthat::expect_output(print(fcast), "Series 1") test-mforecast.R:54:4
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─testthat::capture_output_lines(code, print, width = width)
    5. │   │   └─testthat:::eval_with_output(code, print = print, width = width)
    6. │   │     ├─withr::with_output_sink(temp, withVisible(code))
    7. │   │     │ └─base::force(code)
    8. │   │     └─base::withVisible(code)
    9. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   10. ├─base::print(fcast)
   11. └─forecast:::print.mforecast(fcast)
   12.   └─base::lapply(...)
   13.     └─forecast:::FUN(X[[i]], ...)
   14.       ├─base::print(x)
   15.       └─forecast:::print.forecast(x)
   16.         ├─base::print(as.data.frame(x))
   17.         ├─base::as.data.frame(x)
   18.         └─forecast:::as.data.frame.forecast(x)
   19.           ├─base::format(tx, nsmall = nd, digits = nd)
   20.           └─base::format.default(tx, nsmall = nd, digits = nd)
   21.             └─base::prettyNum(...)
  
  [ FAIL 4 | WARN 0 | SKIP 5 | PASS 770 ]
  Error: Test failures
  Execution halted