Running ‘testthat.R’ [17s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(garma)
  Loading required package: forecast
  Loading required package: ggplot2
  
  
  Package garma: 0.9.23
  
  > 
  > test_check("garma")
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 55 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-garma2.R:6:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-garma.R:241:3'): garma xreg ────────────────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `gap[, 1]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─garma::garma(x, xreg = m) at test-garma.R:241:3
   2.   └─garma:::internal_generic_optim_list(...)
   3.     └─garma:::internal_generic_optim(...)
   4.       └─Rsolnp::solnp(...)
   5.         └─Rsolnp:::.subnp(...)
  ── Error ('test-predict.R:2:3'): predict ───────────────────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `gap[, 1]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─garma::garma(runif(120)) at test-predict.R:2:3
   2.   └─garma:::internal_generic_optim_list(...)
   3.     └─garma:::internal_generic_optim(...)
   4.       └─Rsolnp::solnp(...)
   5.         └─Rsolnp:::.subnp(...)
  ── Error ('test_garma.R:241:3'): garma xreg ────────────────────────────────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `gap[, 1]`: subscript out of bounds
  Backtrace:
      ▆
   1. └─garma::garma(x, xreg = m) at test_garma.R:241:3
   2.   └─garma:::internal_generic_optim_list(...)
   3.     └─garma:::internal_generic_optim(...)
   4.       └─Rsolnp::solnp(...)
   5.         └─Rsolnp:::.subnp(...)
  
  [ FAIL 3 | WARN 0 | SKIP 1 | PASS 55 ]
  Error: Test failures
  Execution halted