Running ‘testthat.R’ [1m/89m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(fflr)
  > 
  > test_check("fflr")
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● season over (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-abbrev.R:5:3): team numbers are converted to abbreviations ──────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-abbrev.R:5:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─fflr::team_abbrev(id = 6, teams = league_teams(252353))
   5. └─fflr::league_teams(252353)
   6.   └─fflr:::parse_teams(data$teams)
   7.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-acquire.R:5:3): acquisition data returns for current rosters ────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─fflr::player_acquire(252353) test-acquire.R:5:2
   2.   └─fflr:::parse_teams(data$teams)
   3.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-best.R:9:3): scores stop if pre-game ────────────────────────────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─fflr::team_roster(252353, week = 3) test-best.R:9:2
   2.   └─fflr:::parse_teams(data$teams)
   3.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-draft.R:5:3): draft returns for current year ────────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─fflr::draft_picks(252353, old = FALSE) test-draft.R:5:2
   2.   └─fflr:::parse_draft(x, year = y, type = t)
  ── Error (test-draft.R:17:3): snake draft with v3 API using different league ───
  Error: argument is of length zero
  Backtrace:
      █
   1. └─fflr::draft_picks(46920214, old = FALSE) test-draft.R:17:2
   2.   └─fflr:::parse_draft(x, year = y, type = t)
  ── Failure (test-info.R:8:3): fantasy football seasons are listed ──────────────
  nrow(s) not equal to 17.
  1/1 mismatches
  [1] 18 - 17 == 1
  ── Error (test-live.R:15:3): live scoreboard works if gameday ──────────────────
  Error: Input must be a vector, not NULL.
  Backtrace:
      █
   1. ├─fflr::live_scoring(252353) test-live.R:15:2
   2. │ ├─s[!is.na(s$proj), ]
   3. │ └─tibble:::`[.tbl_df`(s, !is.na(s$proj), )
   4. │   └─tibble:::tbl_subset_row(xo, i = i, i_arg)
   5. │     └─base::lapply(unclass(x), vec_slice, i = i)
   6. │       └─vctrs:::FUN(X[[i]], ...)
   7. └─vctrs:::stop_scalar_type(.Primitive("quote")(NULL), "")
   8.   └─vctrs:::stop_vctrs(msg, "vctrs_error_scalar_type", actual = x)
  ── Error (test-live.R:23:3): live scoreboard can add yet-to-play ───────────────
  Error: Input must be a vector, not NULL.
  Backtrace:
      █
   1. ├─fflr::live_scoring(252353, yet = TRUE) test-live.R:23:2
   2. │ ├─s[!is.na(s$proj), ]
   3. │ └─tibble:::`[.tbl_df`(s, !is.na(s$proj), )
   4. │   └─tibble:::tbl_subset_row(xo, i = i, i_arg)
   5. │     └─base::lapply(unclass(x), vec_slice, i = i)
   6. │       └─vctrs:::FUN(X[[i]], ...)
   7. └─vctrs:::stop_scalar_type(.Primitive("quote")(NULL), "")
   8.   └─vctrs:::stop_vctrs(msg, "vctrs_error_scalar_type", actual = x)
  ── Error (test-matchups.R:5:3): matchups returns for current year ──────────────
  Error: argument 1 is not a vector
  Backtrace:
      █
   1. └─fflr::match_scores(252353, old = FALSE) test-matchups.R:5:2
   2.   └─fflr:::parse_matchup(s = data$schedule, y = data$seasonId, t = t)
   3.     ├─x[order(x$match), ]
   4.     ├─tibble:::`[.tbl_df`(x, order(x$match), )
   5.     └─base::order(x$match)
  ── Error (test-members.R:5:3): members returns for current year ────────────────
  Error: Can't subset columns that don't exist.
  ✖ Locations 4, 1, 2, and 3 don't exist.
  ℹ There are only 0 columns.
  Backtrace:
       █
    1. └─fflr::league_members(252353, old = FALSE) test-members.R:5:2
    2.   ├─data$members[, c(4, 1:3)]
    3.   └─tibble:::`[.tbl_df`(data$members, , c(4, 1:3))
    4.     └─tibble:::vectbl_as_col_location(...)
    5.       ├─tibble:::subclass_col_index_errors(...)
    6.       │ └─base::withCallingHandlers(...)
    7.       └─vctrs::vec_as_location(j, n, names)
    8.         └─(function () ...
    9.           └─vctrs:::stop_subscript_oob(...)
   10.             └─vctrs:::stop_subscript(...)
  ── Error (test-merge.R:5:3): fantasy tables can be merged ──────────────────────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─fflr::team_roster(252353) test-merge.R:5:2
   2.   └─fflr:::parse_teams(data$teams)
   3.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-messages.R:5:3): messages return for current year ───────────────
  Error: All columns in a tibble must be vectors.
  ✖ Column `type` is NULL.
  ✖ Column `author` is NULL.
  ✖ Column `content` is NULL.
  ✖ Column `view_by` is NULL.
  Backtrace:
      █
   1. └─fflr::league_messages(252353, old = FALSE) test-messages.R:5:2
   2.   └─fflr:::parse_coms(t)
   3.     ├─tibble::as_tibble(rbind(email, chat, board1, board2, note))
   4.     └─tibble:::as_tibble.data.frame(...)
   5.       └─tibble:::lst_to_tibble(unclass(x), .rows, .name_repair)
   6.         └─tibble:::check_valid_cols(x)
  ── Error (test-moves.R:5:3): movies returns for current year ───────────────────
  Error: second argument must be a list
  Backtrace:
      █
   1. └─fflr::roster_moves(252353, old = FALSE, week = 5) test-moves.R:5:2
   2.   └─fflr:::parse_moves(data$transactions, y = data$seasonId)
   3.     └─base::do.call("rbind", t$items)
  ── Error (test-opponents.R:5:3): opponent ranks are tidy table ─────────────────
  Error: arguments imply differing number of rows: 1, 0, 6
  Backtrace:
      █
   1. └─fflr::opponent_ranks(NULL) test-opponents.R:5:2
   2.   ├─base::do.call("rbind", lapply(oprk, as.data.frame))
   3.   └─base::lapply(oprk, as.data.frame)
   4.     ├─base:::FUN(X[[i]], ...)
   5.     └─base::as.data.frame.list(X[[i]], ...)
   6.       ├─base::do.call(data.frame, c(x, alis))
   7.       └─(function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, ...
  ── Error (test-outlooks.R:5:3): outlooks return without league ID ──────────────
  Error: Input must be a vector, not NULL.
  Backtrace:
      █
   1. ├─fflr::player_outlook(lid = NULL, limit = 10) test-outlooks.R:5:2
   2. │ ├─out[!is.na(out$outlook), ]
   3. │ └─tibble:::`[.tbl_df`(out, !is.na(out$outlook), )
   4. │   └─tibble:::tbl_subset_row(xo, i = i, i_arg)
   5. │     └─base::lapply(unclass(x), vec_slice, i = i)
   6. │       └─vctrs:::FUN(X[[i]], ...)
   7. └─vctrs:::stop_scalar_type(.Primitive("quote")(NULL), "")
   8.   └─vctrs:::stop_vctrs(msg, "vctrs_error_scalar_type", actual = x)
  ── Error (test-players.R:6:3): all players can be listed with limit ────────────
  Error: non-numeric argument to mathematical function
  Backtrace:
      █
   1. └─fflr::all_players(lid = NULL, limit = l) test-players.R:6:2
   2.   └─base::data.frame(...)
  ── Error (test-roster.R:5:3): rosters return for current year ──────────────────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─fflr::team_roster(252353, old = FALSE) test-roster.R:5:2
   2.   └─fflr:::parse_teams(data$teams)
   3.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-schedule.R:5:3): schedule returns for current year ──────────────
  Error: invalid 'times' argument
  Backtrace:
      █
   1. └─fflr::match_schedule(252353, old = FALSE) test-schedule.R:5:2
   2.   └─fflr:::parse_sched(...)
   3.     └─tibble::tibble(...)
   4.       └─tibble:::tibble_quos(xs[!is.null], .rows, .name_repair)
   5.         └─rlang::eval_tidy(xs[[j]], mask)
  ── Error (test-scoring.R:5:3): weekly scoring returns for current year ─────────
  Error: invalid argument type
  Backtrace:
      █
   1. └─fflr::week_scores(252353, old = FALSE) test-scoring.R:5:2
   2.   └─fflr:::parse_week(...)
   3.     ├─x[order(x$match, !x$home), ]
   4.     ├─base::`[.data.frame`(x, order(x$match, !x$home), )
   5.     └─base::order(x$match, !x$home)
  ── Error (test-settings.R:7:3): draft settings for a single season ─────────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::draft_settings(252353, old = FALSE) test-settings.R:7:2
  ── Failure (test-settings.R:28:3): league info for a single season ─────────────
  d$public is not TRUE
  
  `actual` is NULL
  `expected` is a logical vector (TRUE)
  ── Failure (test-settings.R:29:3): league info for a single season ─────────────
  d$year has type 'NULL', not 'integer'.
  ── Failure (test-settings.R:50:3): league name returns as single character element ──
  `d` has length 0, not length 1.
  ── Failure (test-settings.R:51:3): league name returns as single character element ──
  `d` has type 'NULL', not 'character'.
  ── Error (test-settings.R:57:3): waiver settings for a single season ───────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::waiver_settings(252353, old = FALSE) test-settings.R:57:2
  ── Error (test-settings.R:78:3): fee settings for a single season ──────────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::fee_settings(252353, old = FALSE) test-settings.R:78:2
  ── Error (test-settings.R:95:3): roster settings for a single season ───────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::roster_settings(252353, old = FALSE) test-settings.R:95:2
  ── Error (test-settings.R:113:3): schedule settings for a single season ────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::schedule_settings(252353, old = FALSE) test-settings.R:113:2
  ── Error (test-settings.R:134:3): scoring settings for a single season ─────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::score_settings(252353, old = FALSE) test-settings.R:134:2
  ── Failure (test-settings.R:154:3): trade settings for a single season ─────────
  `t` has length 1, not length 6.
  ── Error (test-standings.R:5:3): standings returns for current year ────────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::score_summary(252353, old = FALSE) test-standings.R:5:2
   2.   └─fflr:::parse_ranks(teams = data$teams, y = data$seasonId, w = data$scoringPeriodId)
  ── Error (test-teams.R:5:3): teams return for current year ─────────────────────
  Error: incorrect number of dimensions
  Backtrace:
      █
   1. └─fflr::league_teams(252353, old = FALSE) test-teams.R:5:2
   2.   └─fflr:::parse_teams(data$teams)
   3.     └─tibble::as_tibble(t[, c("team", "abbrev", "name")])
  ── Error (test-transactions.R:5:3): rosters return for current year ────────────
  Error: attempt to set an attribute on NULL
  Backtrace:
      █
   1. └─fflr::moves_summary(252353, old = FALSE) test-transactions.R:5:2
   2.   └─fflr:::parse_trans(teams = data$teams, y = data$seasonId, w = data$scoringPeriodId)
  
  [ FAIL 33 | WARN 5 | SKIP 1 | PASS 137 ]
  Error: Test failures
  Execution halted