Last updated on 2024-05-17 03:58:27 CEST.
Package | ERROR | OK |
---|---|---|
sleeperapi | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 1.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [90s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(sleeperapi)
>
> test_check("sleeperapi")
[1] "NFL data generation successful."
[1] "NFL data generation successful."
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 106 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-get_league_users.R:5:3'): Invalid league ID returns a message informing user ──
Error: lexical error: invalid char in json text.
<!DOCTYPE html> <html lang="en"
(right here) ------^
Backtrace:
▆
1. ├─testthat::expect_message(get_league_users(-777), "No data found - was the league ID entered correctly?") at test-get_league_users.R:5:3
2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─sleeperapi::get_league_users(-777)
7. └─jsonlite::fromJSON(...)
8. └─jsonlite:::parse_and_simplify(...)
9. └─jsonlite:::parseJSON(txt, bigint_as_char)
10. └─jsonlite:::parse_string(txt, bigint_as_char)
[ FAIL 1 | WARN 1 | SKIP 0 | PASS 106 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-windows-x86_64