Last updated on 2025-03-25 07:06:53 CET.
Package | ERROR | OK |
---|---|---|
itscalledsoccer | 1 | 14 |
Current CRAN status: ERROR: 1, OK: 14
Version: 0.3.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [2s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(itscalledsoccer)
>
> test_check("itscalledsoccer")
Error in `FUN()`:
! In path: "/home/hornik/tmp/R.check/r-release-gcc/Work/PKGS/itscalledsoccer.Rcheck/tests/testthat/helper.R"
Caused by error in `while (nrow(tmp_response) == self$MAX_API_LIMIT) {
query$offset <- offset
tmp_response <- .single_request(self, url, query, uncached)
tmp_response <- .cast_lists_to_vectors(tmp_response)
addtl_responses <- append(addtl_responses, list(tmp_response))
offset <- offset + self$MAX_API_LIMIT
}`:
! argument is of length zero
Backtrace:
▆
1. ├─testthat::test_check("itscalledsoccer")
2. │ └─testthat::test_dir(...)
3. │ └─testthat:::test_files(...)
4. │ └─testthat:::test_files_serial(...)
5. │ └─testthat:::test_files_setup_state(...)
6. │ └─testthat::source_test_helpers(".", env)
7. │ └─testthat::source_dir(path, "^helper.*\\.[rR]$", env = env, wrap = FALSE)
8. │ └─base::lapply(...)
9. │ └─testthat (local) FUN(X[[i]], ...)
10. │ └─testthat::source_file(path, env = env, chdir = chdir, wrap = wrap)
11. │ ├─base::withCallingHandlers(...)
12. │ └─base::eval(exprs, env)
13. │ └─base::eval(exprs, env)
14. │ └─AmericanSoccerAnalysis$new() at tests/testthat/helper.R:1:1
15. │ └─itscalledsoccer (local) initialize(...)
16. │ └─itscalledsoccer:::.get_latest_update_timestamp(self)
17. │ └─itscalledsoccer:::.execute_query(self, url, uncached = )
18. └─base::.handleSimpleError(...)
19. └─testthat (local) h(simpleError(msg, call))
20. └─rlang::abort(...)
Execution halted
Flavor: r-release-linux-x86_64