Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(scoringutils)
  > 
  > test_check("scoringutils")
  Error in `source_dir()`:
  ! Failed to evaluate './setup.R'.
  Caused by error in `[.data.table`:
  ! attempt access index 10/10 in VECTOR_ELT
  Backtrace:
       ▆
    1. ├─testthat::test_check("scoringutils")
    2. │ └─testthat::test_dir(...)
    3. │   └─testthat:::test_files(...)
    4. │     └─testthat:::test_files_serial(...)
    5. │       └─testthat:::test_files_setup_state(...)
    6. │         └─testthat::source_test_setup(".", env)
    7. │           └─testthat::source_dir(path, "^setup.*\\.[rR]$", env = env, wrap = FALSE)
    8. │             └─base::lapply(...)
    9. │               └─testthat (local) FUN(X[[i]], ...)
   10. │                 └─testthat::source_file(...)
   11. │                   ├─base::withCallingHandlers(...)
   12. │                   └─base::eval(exprs, env)
   13. │                     └─base::eval(exprs, env)
   14. │                       ├─scoringutils::score(example_quantile) at ./setup.R:18:1
   15. │                       └─scoringutils:::score.forecast_quantile(example_quantile)
   16. │                         └─scoringutils:::clean_forecast(forecast, copy = TRUE, na.omit = TRUE)
   17. │                           ├─scoringutils::assert_forecast(forecast, verbose = FALSE)
   18. │                           └─scoringutils:::assert_forecast.forecast_quantile(forecast, verbose = FALSE)
   19. │                             └─scoringutils:::assert_forecast_generic(forecast, verbose)
   20. │                               ├─checkmate::assert(check_duplicates(data))
   21. │                               │ └─base::eval(dots[[i]], envir = env)
   22. │                               │   └─base::eval(dots[[i]], envir = env)
   23. │                               └─scoringutils:::check_duplicates(data)
   24. │                                 └─scoringutils::get_duplicate_forecasts(data)
   25. │                                   ├─...[]
   26. │                                   └─data.table:::`[.data.table`(...)
   27. └─base::.handleSimpleError(...)
   28.   └─testthat (local) h(simpleError(msg, call))
   29.     └─cli::cli_abort(...)
   30.       └─rlang::abort(...)
  Execution halted