Running 'testthat.R' [13s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sleeperapi)
  > 
  > test_check("sleeperapi")
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 12 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-get_draft.R:5:3): Invalid draft ID returns nothing ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Timeout was reached: [api.sleeper.app] Resolving timed out after 10000 milliseconds
  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.   ├─httr::content(...)
    7.   │ ├─base::stopifnot(is.response(x))
    8.   │ └─httr:::is.response(x)
    9.   └─httr::GET(paste0("https://api.sleeper.app/v1/draft/", draft_id))
   10.     └─httr:::request_perform(req, hu$handle$handle)
   11.       ├─httr:::request_fetch(req$output, req$url, handle)
   12.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   13.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_draft_pick_trades.R:5:3): Invalid league ID returns message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_draft_pick_trades(-777), "No data found - was the draft ID entered correctly?") at test-get_draft_pick_trades.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_pick_trades(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_draft_picks.R:5:3): Invalid league ID returns a list ────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  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.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_league.R:5:3): Invalid league ID prints a message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_league(-777), "League ID did not return any results. Did you enter the league ID correctly?") at test-get_league.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(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(paste0("https://api.sleeper.app/v1/league/", league_id))
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_league_drafts.R:5:3): Invalid league ID returns a message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_league_drafts(-777), "No data found - was the league ID entered correctly?") at test-get_league_drafts.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_drafts(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_league_users.R:5:3): Invalid league ID returns a message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  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.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_loser_playoff_bracket.R:5:3): Invalid league ID prints a message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_loser_playoff_bracket(-777), "League ID did not return any results. Did you enter the league ID correctly?") at test-get_loser_playoff_bracket.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_loser_playoff_bracket(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_rosters.R:5:3): Invalid league ID informs user ──────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_rosters(-777), "League ID did not return any results. Did you enter the league ID correctly?") at test-get_rosters.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_rosters(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_traded_picks.R:5:3): returned object length of zero informs user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(class(get_traded_picks(-777)), "No data found but still returning empty list. Was league ID entered correctly and are traded picks known to be there?") at test-get_traded_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_traded_picks(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_user.R:5:3): Invalid user ID informs user ───────────────────
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  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.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(paste0("https://api.sleeper.app/v1/user/", user_id))
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  ── Error (test-get_winner_playoff_bracket.R:5:3): Invalid league ID prints a message informing user ──
  Error in `curl::curl_fetch_memory(url, handle = handle)`: Could not resolve host: api.sleeper.app
  Backtrace:
       ▆
    1. ├─testthat::expect_message(get_winner_playoff_bracket(-777), "League ID did not return any results. Did you enter the league ID correctly?") at test-get_winner_playoff_bracket.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_winner_playoff_bracket(-777)
    7.   ├─jsonlite::fromJSON(...)
    8.   ├─httr::content(...)
    9.   │ ├─base::stopifnot(is.response(x))
   10.   │ └─httr:::is.response(x)
   11.   └─httr::GET(...)
   12.     └─httr:::request_perform(req, hu$handle$handle)
   13.       ├─httr:::request_fetch(req$output, req$url, handle)
   14.       └─httr:::request_fetch.write_memory(req$output, req$url, handle)
   15.         └─curl::curl_fetch_memory(url, handle = handle)
  
  [ FAIL 11 | WARN 0 | SKIP 0 | PASS 12 ]
  Error: Test failures
  Execution halted