Running 'testthat.R' [66s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sleeperapi)
  > 
  > test_check("sleeperapi")
  [ FAIL 4 | WARN 0 | SKIP 0 | PASS 19 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get_draft.R:5:3'): Invalid draft ID returns nothing ────────────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html> <html lang="en"
                       (right here) ------^
  
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(get_draft(-777), NULL) at test-get_draft.R:5:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─sleeperapi::get_draft(-777)
   5.   └─jsonlite::fromJSON(...)
   6.     └─jsonlite:::parse_and_simplify(...)
   7.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   8.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-get_draft_picks.R:5:3'): Invalid league ID returns a list ──────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html> <html lang="en"
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_draft_picks(-777), "No data found - was the draft ID entered correctly?") at test-get_draft_picks.R:5:2
    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_draft_picks(-777)
    7.   └─jsonlite::fromJSON(...)
    8.     └─jsonlite:::parse_and_simplify(...)
    9.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   10.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── 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:2
    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)
  ── Error ('test-get_user.R:5:3'): Invalid user ID informs user ─────────────────
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html> <html lang="en"
                       (right here) ------^
  
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_user(-777), "No data returned - are you sure the user ID was specified correctly?") at test-get_user.R:5:2
    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_user(-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 4 | WARN 0 | SKIP 0 | PASS 19 ]
  Error: Test failures
  Execution halted