Running ‘testthat.R’ [21s/38s]
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(EWSmethods)
  > 
  > test_check("EWSmethods")
  data successfully aggregated into monthly time steps
  
  data successfully aggregated into monthly time steps
  
  data successfully aggregated into monthly time steps
  
  Saving _problems/test-multivariate_composite_ews_wrapper-8.R
  Saving _problems/test-perm_rollEWS-20.R
  Saving _problems/test-uniAR-5.R
  Saving _problems/test-univariate_composite_ews_wrapper-9.R
  [ FAIL 4 | WARN 26 | SKIP 2 | PASS 43 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-reset_ewsnet.R:2:3'
  • miniconda not available for testing (1): 'test-ewsnet_init.R:11:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-multivariate_composite_ews_wrapper.R:6:3'): mulitEWS works ─────
  Error in `ar.ols(data[i:(i + winsize_true - 1), x], aic = FALSE, order.max = 1, dmean = FALSE, intercept = FALSE)`: non-conformable arguments
  Backtrace:
      ▆
   1. └─EWSmethods::multiEWS(...) at test-multivariate_composite_ews_wrapper.R:6:3
   2.   └─EWSmethods:::wMAF(...)
   3.     ├─base::mean(...)
   4.     └─base::sapply(...)
   5.       └─base::lapply(X = X, FUN = FUN, ...)
   6.         └─EWSmethods (local) FUN(X[[i]], ...)
   7.           └─stats::ar.ols(...)
  ── Error ('test-perm_rollEWS.R:14:3'): Permuted rolling EWS works ──────────────
  Error in `ar.ols(data[i:(i + winsize_true - 1), x], aic = FALSE, order.max = 1, dmean = FALSE, intercept = FALSE)`: non-conformable arguments
  Backtrace:
      ▆
   1. └─EWSmethods::perm_rollEWS(...) at test-perm_rollEWS.R:14:3
   2.   └─EWSmethods::multiEWS(...)
   3.     └─EWSmethods:::wMAF(...)
   4.       ├─base::mean(...)
   5.       └─base::sapply(...)
   6.         └─base::lapply(X = X, FUN = FUN, ...)
   7.           └─EWSmethods (local) FUN(X[[i]], ...)
   8.             └─stats::ar.ols(...)
  ── Error ('test-uniAR.R:5:3'): uniAR behaviour ─────────────────────────────────
  Error in `stats::ar.ols(as.matrix(sub_data[, -1]), aic = FALSE, order.max = p, dmean = FALSE, intercept = FALSE)`: non-conformable arguments
  Backtrace:
      ▆
   1. └─EWSmethods::uniAR(data = test.data, winsize = 50, dt = 1) at test-uniAR.R:5:3
   2.   └─base::lapply(...)
   3.     └─EWSmethods (local) FUN(X[[i]], ...)
   4.       └─stats::ar.ols(...)
  ── Error ('test-univariate_composite_ews_wrapper.R:7:3'): uniEWS works ─────────
  Error in `ar.ols(data[i:(i + winsize_true - 1), 2], aic = FALSE, order.max = 1, dmean = FALSE, intercept = FALSE)`: non-conformable arguments
  Backtrace:
      ▆
   1. └─EWSmethods::uniEWS(...) at test-univariate_composite_ews_wrapper.R:7:3
   2.   └─EWSmethods:::no.plot.ews(...)
   3.     └─stats::ar.ols(...)
  
  [ FAIL 4 | WARN 26 | SKIP 2 | PASS 43 ]
  Error:
  ! Test failures.
  Execution halted