Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [5s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fflr)
  > 
  > options(fflr.leagueId = "42654852")
  > test_check("fflr")
  Request failed [500]. Retrying in 1.9 seconds...
  Request failed [500]. Retrying in 2.3 seconds...
  No scheduled professional football events
  No scheduled professional football events
  [ FAIL 47 | WARN 0 | SKIP 1 | PASS 32 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • rvest cannot be loaded (1): 'test-news.R:10:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-abbrev.R:1:1'): (code run outside of `test_that()`) ────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_teams("42654852") at test-abbrev.R:1:1
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-acquisition.R:2:3'): player acquisition ────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::player_acquire(leagueId = "42654852") at test-acquisition.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-activity.R:2:3'): recent activity ──────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::recent_activity(...) at test-activity.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-api.R:2:3'): empty API call returns fantasy league info ────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::ffl_api(leagueId = "42654852") at test-api.R:2:3
   2.   └─fflr:::try_json(...)
  ── Error ('test-best.R:2:3'): calculate best possible past roster ──────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::best_roster(...) at test-best.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-best.R:17:3'): calculate best possible future roster ───────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::best_roster(...) at test-best.R:17:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-draft.R:2:3'): obtain draft data ───────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::draft_recap(leagueId = "42654852") at test-draft.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-draft.R:10:3'): obtain draft data history ──────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::draft_recap(leagueId = "42654852", leagueHistory = TRUE) at test-draft.R:10:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-history.R:2:3'): historical data can be returned ───────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_standings(leagueId = "42654852", leagueHistory = TRUE) at test-history.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-history.R:12:3'): historical data can be combined ──────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::combine_history(fun = league_simulation, leagueId = "42654852") at test-history.R:12:3
   2.   └─fflr (local) fun(..., leagueHistory = TRUE)
   3.     └─fflr::ffl_api(...)
   4.       └─fflr:::try_json(...)
  ── Error ('test-info.R:2:3'): current year ─────────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::ffl_year() at test-info.R:2:3
   2.   └─fflr::ffl_info()
   3.     └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl")
  ── Error ('test-info.R:8:3'): current week ─────────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::ffl_week() at test-info.R:8:3
   2.   └─fflr::ffl_info()
   3.     └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl")
  ── Error ('test-info.R:14:3'): fantasy seasons ─────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::ffl_seasons() at test-info.R:14:3
   2.   └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl/seasons")
  ── Error ('test-info.R:20:3'): fantasy seasons ─────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::espn_games() at test-info.R:20:3
   2.   └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games")
  ── Error ('test-live.R:2:3'): live scoring returns 1 row per team ──────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::live_scoring(...) at test-live.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-members.R:2:3'): league members ────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_members(leagueId = "42654852") at test-members.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-members.R:8:3'): league members history with names ─────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_members(leagueId = "42654852", leagueHistory = TRUE) at test-members.R:8:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-messages.R:2:3'): league messages ──────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_messages(leagueId = "42654852") at test-messages.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-opponents.R:2:3'): opponent ranks ──────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::opponent_ranks(leagueId = "42654852") at test-opponents.R:2:3
   2.   └─fflr::ffl_api(leagueId, view = "kona_player_info")
   3.     └─fflr:::try_json(...)
  ── Error ('test-outlook.R:2:3'): get individual player outlook ─────────────────
  Error: lexical error: invalid char in json text.
                                        	<!DOCTYPE html> 	<html class="n
                       (right here) ------^
  
  Backtrace:
      ▆
   1. └─fflr::player_outlook(leagueId = NULL, limit = 1) at test-outlook.R:2:3
   2.   └─jsonlite::fromJSON(httr::content(all_get, as = "text"))
   3.     └─jsonlite:::parse_and_simplify(...)
   4.       └─jsonlite:::parseJSON(txt, bigint_as_char)
   5.         └─jsonlite:::parse_string(txt, bigint_as_char)
  ── Error ('test-players.R:2:3'): player list by value with custom sort ─────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::list_players(...) at test-players.R:2:3
   2.   └─fflr::ffl_week()
   3.     └─fflr::ffl_info()
   4.       └─fflr:::try_json("https://fantasy.espn.com/apis/v3/games/ffl")
  ── Error ('test-roster.R:2:3'): All current team rosters as list ───────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::team_roster(leagueId = "42654852", scoringPeriodId = 1) at test-roster.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-roster.R:11:3'): All final period team rosters as list of list ──
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::team_roster(leagueId = "252353", leagueHistory = TRUE) at test-roster.R:11:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-schedule.R:2:3'): obtain tidy fantasy schedule ─────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::tidy_schedule(leagueId = "42654852") at test-schedule.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-schedule.R:7:3'): obtain tidy fantasy schedule history ─────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::tidy_schedule(leagueId = "42654852", leagueHistory = TRUE) at test-schedule.R:7:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-schedule.R:13:3'): tidy matchups deprecated ────────────────────
  Error: API did not return JSON
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(tidy_matchups(leagueId = "42654852")) at test-schedule.R:13:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─fflr::tidy_matchups(leagueId = "42654852")
    8.   └─fflr::tidy_schedule(...)
    9.     └─fflr::ffl_api(...)
   10.       └─fflr:::try_json(...)
  ── Error ('test-scores.R:2:3'): scores by matchup period ───────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::tidy_scores(...) at test-scores.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-scores.R:11:3'): scores by scoring period ──────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::tidy_scores(...) at test-scores.R:11:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-scores.R:20:3'): scores by past league history ─────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::tidy_scores(...) at test-scores.R:20:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:4:3'): draft settings for a single season ───────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::draft_settings("42654852", leagueHistory = FALSE) at test-settings.R:4:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:15:3'): league info for a single season ─────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_info("42654852", leagueHistory = FALSE) at test-settings.R:15:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:25:3'): named vector of past seasons for league ─────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_size("252353", leagueHistory = TRUE) at test-settings.R:25:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:34:3'): league name returns as a data frame ─────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_name("42654852") at test-settings.R:34:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:43:3'): acquisition settings for a single season ────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::acquisition_settings("42654852", leagueHistory = FALSE) at test-settings.R:43:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:55:3'): fee settings for a single season ────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::finance_settings("42654852", leagueHistory = FALSE) at test-settings.R:55:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:64:3'): roster settings for a single season ─────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::roster_settings("42654852", leagueHistory = FALSE) at test-settings.R:64:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:71:3'): roster settings for a past seasons ──────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::roster_settings("42654852", leagueHistory = TRUE) at test-settings.R:71:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:81:3'): schedule settings for a single season ───────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::schedule_settings("42654852", leagueHistory = FALSE) at test-settings.R:81:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:91:3'): scoring settings for a single season ────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::scoring_settings("42654852", leagueHistory = FALSE) at test-settings.R:91:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-settings.R:99:3'): trade settings for a single season ──────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::trade_settings("42654852", leagueHistory = FALSE) at test-settings.R:99:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-simulation.R:2:3'): get simulated season projections ───────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_simulation(leagueId = "42654852") at test-simulation.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-standings.R:2:3'): standings returns data frame ────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_standings("42654852") at test-standings.R:2:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-standings.R:8:3'): combine all historical standings ────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::combine_history(league_standings, "252353") at test-standings.R:8:3
   2.   └─fflr (local) fun(..., leagueHistory = TRUE)
   3.     └─fflr::ffl_api(...)
   4.       └─fflr:::try_json(...)
  ── Error ('test-standings.R:15:3'): simulations returns data frame ─────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_simulation("42654852") at test-standings.R:15:3
   2.   └─fflr::ffl_api(...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-status.R:2:3'): league status ──────────────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::league_status(leagueId = "42654852") at test-status.R:2:3
   2.   └─fflr::ffl_api(leagueId, leagueHistory, view = "mStatus", ...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-transactions.R:2:3'): team transactions ────────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::transaction_counter(leagueId = "42654852") at test-transactions.R:2:3
   2.   └─fflr::ffl_api(leagueId, leagueHistory, view = "mTeam", ...)
   3.     └─fflr:::try_json(...)
  ── Error ('test-transactions.R:8:3'): team budget summary ──────────────────────
  Error: API did not return JSON
  Backtrace:
      ▆
   1. └─fflr::budget_summary(leagueId = "42654852") at test-transactions.R:8:3
   2.   └─fflr::transaction_counter(...)
   3.     └─fflr::ffl_api(leagueId, leagueHistory, view = "mTeam", ...)
   4.       └─fflr:::try_json(...)
  
  [ FAIL 47 | WARN 0 | SKIP 1 | PASS 32 ]
  Error: Test failures
  Execution halted