Last updated on 2025-04-23 07:50:05 CEST.
Package | ERROR | OK |
---|---|---|
itscalledsoccer | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.3.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [3s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(itscalledsoccer)
>
> test_check("itscalledsoccer")
Gathering playersError in `FUN()`:
! In path: "/home/hornik/tmp/R.check/r-patched-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:::.initialize_entities(self, verbose = TRUE)
17. │ └─itscalledsoccer:::.get_entity(self, "player", verbose = verbose)
18. │ └─itscalledsoccer:::.execute_query(self, url)
19. └─base::.handleSimpleError(...)
20. └─testthat (local) h(simpleError(msg, call))
21. └─rlang::abort(...)
Execution halted
Flavor: r-patched-linux-x86_64