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 2 | WARN 1 | SKIP 0 | PASS 105 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_weekly_matchups.R:15:3'): good function call with 'all' type returns list ──
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html> <html lang="en"
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-get_weekly_matchups.R:15:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sleeperapi::get_weekly_matchups(688281863499907072, type = "all")
    5.   ├─base::suppressMessages(get_matchups(league_id, matchup_week))
    6.   │ └─base::withCallingHandlers(...)
    7.   └─sleeperapi::get_matchups(league_id, matchup_week)
    8.     └─jsonlite::fromJSON(...)
    9.       └─jsonlite:::parse_and_simplify(...)
   10.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.           └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-get_weekly_matchups.R:20:3'): good function call with 'team' type returns list ──
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html> <html lang="en"
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-get_weekly_matchups.R:20:3
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─sleeperapi::get_weekly_matchups(688281863499907072, type = "team")
    5.   ├─base::suppressMessages(get_matchups(league_id, matchup_week))
    6.   │ └─base::withCallingHandlers(...)
    7.   └─sleeperapi::get_matchups(league_id, matchup_week)
    8.     └─jsonlite::fromJSON(...)
    9.       └─jsonlite:::parse_and_simplify(...)
   10.         └─jsonlite:::parseJSON(txt, bigint_as_char)
   11.           └─jsonlite:::parse_string(txt, bigint_as_char)
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 105 ]
  Error: Test failures
  Execution halted