Running ‘testthat.R’ [8s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(comperank)
  Loading required package: comperes
  > 
  > test_check("comperank")
  ── 1. Error: rate_colley works (@test-colley.R#15)  ────────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_colley(cr_data)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 2. Error: rate_colley works with factor `player` (@test-colley.R#25)  ───────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_colley(input_1)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
    4. dplyr::mutate(., player = as.character(.data$player))
   11. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 3. Error: rate_colley works with numeric `player` (@test-colley.R#42)  ──────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_colley(input)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 4. Error: rate_colley works with not all matchups present (@test-colley.R#51)
  'where' must be an environment
  Backtrace:
    1. comperank::rate_colley(input)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 5. Error: rank_colley works (@test-colley.R#75)  ────────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_colley(cr_data)
    4. comperank::rate_colley(cr_data)
    5. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   33. comperes:::repair_widecr(res, ...)
   34. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   43. ellipsis::check_dots_used()
   45. ellipsis:::exit_handler(action)
   46. base::bquote(...)
  
  ── 6. Error: rate_elo works (@test-elo.R#15)  ──────────────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_elo(cr_data, K = 30, ksi = 400, initial_ratings = 0)
    5. comperank::rate_iterative(...)
    6. comperank::add_iterative_ratings(...)
    4. dplyr::bind_cols(., y = ratings)
    4. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   12. comperes::as_widecr(., repair = FALSE)
   17. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   26. ellipsis::check_dots_used()
   28. ellipsis:::exit_handler(action)
   29. base::bquote(...)
  
  ── 7. Error: rate_elo handles factor `player` (@test-elo.R#30)  ────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_elo(input, K = 30, ksi = 400, initial_ratings = 0)
    5. comperank::rate_iterative(...)
    6. comperank::add_iterative_ratings(...)
    4. dplyr::bind_cols(., y = ratings)
    4. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   12. comperes::as_widecr(., repair = FALSE)
   17. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   26. ellipsis::check_dots_used()
   28. ellipsis:::exit_handler(action)
   29. base::bquote(...)
  
  ── 8. Error: rate_elo handles numeric `player` (@test-elo.R#43)  ───────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_elo(input, K = 30, ksi = 400, initial_ratings = 0)
    5. comperank::rate_iterative(...)
    6. comperank::add_iterative_ratings(...)
    4. dplyr::bind_cols(., y = ratings)
    4. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   12. comperes::as_widecr(., repair = FALSE)
   17. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   26. ellipsis::check_dots_used()
   28. ellipsis:::exit_handler(action)
   29. base::bquote(...)
  
  ── 9. Error: rate_elo handles data frame `initial_ratings` (@test-elo.R#54)  ───
  'where' must be an environment
  Backtrace:
    1. comperank::rate_elo(cr_data, K = 30, ksi = 400, initial_ratings = init_rat_df)
    5. comperank::rate_iterative(...)
    6. comperank::add_iterative_ratings(...)
    4. dplyr::bind_cols(., y = ratings)
    4. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   12. comperes::as_widecr(., repair = FALSE)
   17. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   26. ellipsis::check_dots_used()
   28. ellipsis:::exit_handler(action)
   29. base::bquote(...)
  
  ── 10. Error: rank_elo works (@test-elo.R#67)  ─────────────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_elo(cr_data)
    4. comperank::rate_elo(cr_data = cr_data, K = K, ksi = ksi, initial_ratings = initial_ratings)
    8. comperank::rate_iterative(...)
    9. comperank::add_iterative_ratings(...)
    5. dplyr::bind_cols(., y = ratings)
    5. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   13. comperes::as_widecr(., repair = FALSE)
   20. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  ── 11. Error: rank_elo handles factor `player` (@test-elo.R#91)  ───────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_elo(input, K = 30, ksi = 400, initial_ratings = 0)
    4. comperank::rate_elo(cr_data = cr_data, K = K, ksi = ksi, initial_ratings = initial_ratings)
    8. comperank::rate_iterative(...)
    9. comperank::add_iterative_ratings(...)
    5. dplyr::bind_cols(., y = ratings)
    5. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   13. comperes::as_widecr(., repair = FALSE)
   20. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  ── 12. Error: rank_elo handles numeric `player` (@test-elo.R#103)  ─────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_elo(input, K = 30, ksi = 400, initial_ratings = 0)
    4. comperank::rate_elo(cr_data = cr_data, K = K, ksi = ksi, initial_ratings = initial_ratings)
    8. comperank::rate_iterative(...)
    9. comperank::add_iterative_ratings(...)
    5. dplyr::bind_cols(., y = ratings)
    5. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   13. comperes::as_widecr(., repair = FALSE)
   20. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  ── 13. Error: rank_elo handles data frame `initial_ratings` (@test-elo.R#113)  ─
  'where' must be an environment
  Backtrace:
    1. comperank::rank_elo(cr_data, K = 30, ksi = 400, initial_ratings = init_rat_df)
    4. comperank::rate_elo(cr_data = cr_data, K = K, ksi = ksi, initial_ratings = initial_ratings)
    8. comperank::rate_iterative(...)
    9. comperank::add_iterative_ratings(...)
    5. dplyr::bind_cols(., y = ratings)
    5. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   13. comperes::as_widecr(., repair = FALSE)
   20. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   29. ellipsis::check_dots_used()
   31. ellipsis:::exit_handler(action)
   32. base::bquote(...)
  
  ── 14. Error: add_elo_ratings works (@test-elo.R#125)  ─────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::add_elo_ratings(ncaa2005, K = 30, ksi = 400, initial_ratings = 0)
    2. comperank::add_iterative_ratings(...)
    3. dplyr::bind_cols(., y = ratings)
    3. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   11. comperes::as_widecr(., repair = FALSE)
   13. comperes::is_widecr(cr_data)
   14. tidyr::extract(...)
   22. ellipsis::check_dots_used()
   24. ellipsis:::exit_handler(action)
   25. base::bquote(...)
  
  ── 15. Error: add_elo_ratings handles data frame `initial_ratings` (@test-elo.R#
  'where' must be an environment
  Backtrace:
    1. comperank::add_elo_ratings(ncaa2005, K = 30, ksi = 400, initial_ratings = init_rat_df)
    2. comperank::add_iterative_ratings(...)
    3. dplyr::bind_cols(., y = ratings)
    3. dplyr::select(., -.data[[".player1_id"]], -.data[[".player2_id"]])
   11. comperes::as_widecr(., repair = FALSE)
   13. comperes::is_widecr(cr_data)
   14. tidyr::extract(...)
   22. ellipsis::check_dots_used()
   24. ellipsis:::exit_handler(action)
   25. base::bquote(...)
  
  ── 16. Error: (unknown) (@test-iterative.R#16)  ────────────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperes::as_widecr(as_longcr(cr_data))
    2. comperes:::as_widecr.longcr(as_longcr(cr_data))
    3. comperes:::repair_widecr(res)
    4. comperes::is_widecr(cr_data)
   12. tidyr::extract(...)
   13. ellipsis::check_dots_used()
   15. ellipsis:::exit_handler(action)
   16. base::bquote(...)
  
  ── 17. Error: rate_keener works (@test-keener.R#12)  ───────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_keener(cr_data, !!h2h_funs[["num"]])
    9. comperes::h2h_mat(., ..., fill = fill)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 18. Error: rate_keener works with factor `player` (@test-keener.R#33)  ──────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_keener(...)
    9. comperes::h2h_mat(., ..., fill = fill)
   11. comperes::h2h_long(., !!!dots)
    4. dplyr::mutate(., player = as.character(.data$player))
   11. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 19. Error: rate_keener works with numeric `player` (@test-keener.R#47)  ─────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_keener(input, !!h2h_funs[["sum_score"]])
    9. comperes::h2h_mat(., ..., fill = fill)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 20. Error: rate_keener handles `NULL` arguments (@test-keener.R#58)  ────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_keener(cr_data, !!h2h_funs[["sum_score"]], skew_fun = NULL)
    9. comperes::h2h_mat(., ..., fill = fill)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 21. Error: rank_keener works (@test-keener.R#85)  ───────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_keener(cr_data, !!h2h_funs[["sum_score"]])
    4. comperank::rate_keener(...)
   10. comperes::h2h_mat(., ..., fill = fill)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   40. comperes:::repair_widecr(res, ...)
   41. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   50. ellipsis::check_dots_used()
   52. ellipsis:::exit_handler(action)
   53. base::bquote(...)
  
  ── 22. Error: normalize_keener works (@test-keener.R#135)  ─────────────────────
  'where' must be an environment
  Backtrace:
    1. comperes::h2h_mat(cr_data, !!h2h_funs[["sum_score"]])
   10. comperes::h2h_long(., !!!dots)
   10. comperes::get_matchups(.)
    4. dplyr::left_join(...)
   12. comperes::as_widecr(.)
   29. comperes:::repair_widecr(res, ...)
   30. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   39. ellipsis::check_dots_used()
   41. ellipsis:::exit_handler(action)
   42. base::bquote(...)
  
  ── 23. Failure: normalize_keener throws error (@test-keener.R#159)  ────────────
  `rate_keener(input, sum(score1), fill = 0)` threw an error with unexpected message.
  Expected match: "[Gg]ame.*Extra"
  Actual message: "'where' must be an environment"
  Backtrace:
    1. testthat::expect_error(...)
    6. comperank::rate_keener(input, sum(score1), fill = 0)
   10. comperes::h2h_mat(., ..., fill = fill)
   12. comperes::h2h_long(., !!!dots)
    5. dplyr::mutate(., player = as.character(.data$player))
   12. comperes::get_matchups(.)
    7. dplyr::left_join(...)
   15. comperes::as_widecr(.)
   42. comperes:::repair_widecr(res, ...)
   43. comperes::is_widecr(cr_data)
   18. tidyr::extract(...)
   52. ellipsis::check_dots_used()
   54. ellipsis:::exit_handler(action)
   55. base::bquote(...)
  
  ── 24. Error: rate_markov simply works (@test-markov.R#15)  ────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_markov(...)
    2. comperes::h2h_long(cr, ..., fill = fill)
   10. comperes::get_matchups(.)
    4. dplyr::left_join(...)
   12. comperes::as_widecr(.)
   21. comperes:::repair_widecr(res, ...)
   22. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  ── 25. Error: rate_markov handles factor `player` (@test-markov.R#52)  ─────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_markov(...)
    2. comperes::h2h_long(cr, ..., fill = fill)
    3. dplyr::mutate(., player = as.character(.data$player))
   10. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   21. comperes:::repair_widecr(res, ...)
   22. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  ── 26. Error: rate_markov handles numeric `player` (@test-markov.R#73)  ────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_markov(...)
    2. comperes::h2h_long(cr, ..., fill = fill)
   10. comperes::get_matchups(.)
    4. dplyr::left_join(...)
   12. comperes::as_widecr(.)
   21. comperes:::repair_widecr(res, ...)
   22. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  ── 27. Error: rate_markov handles multiple Head-to-Head values (@test-markov.R#9
  'where' must be an environment
  Backtrace:
    1. comperank::rate_markov(...)
    2. comperes::h2h_long(cr, ..., fill = fill)
   10. comperes::get_matchups(.)
    4. dplyr::left_join(...)
   12. comperes::as_widecr(.)
   21. comperes:::repair_widecr(res, ...)
   22. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  ── 28. Error: rate_markov uses argument `fill` (@test-markov.R#124)  ───────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_markov(...)
    2. comperes::h2h_long(cr, ..., fill = fill)
   10. comperes::get_matchups(.)
    4. dplyr::left_join(...)
   12. comperes::as_widecr(.)
   21. comperes:::repair_widecr(res, ...)
   22. comperes::is_widecr(cr_data)
   15. tidyr::extract(...)
   31. ellipsis::check_dots_used()
   33. ellipsis:::exit_handler(action)
   34. base::bquote(...)
  
  ── 29. Error: rate_markov handles function and list `stoch_modify` (@test-markov
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    4. comperank::rate_markov(cr_data, dplyr::n(), stoch_modify = vote_equal)
    5. comperes::h2h_long(cr, ..., fill = fill)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 30. Error: rate_markov does recycling (@test-markov.R#153)  ─────────────────
  'where' must be an environment
  Backtrace:
    1. testthat::expect_identical(...)
    4. comperank::rate_markov(...)
    5. comperes::h2h_long(cr, ..., fill = fill)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 31. Error: rank_markov works (@test-markov.R#186)  ──────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_markov(...)
    4. comperank::rate_markov(...)
    5. comperes::h2h_long(cr, ..., fill = fill)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 32. Error: rank_markov handles factor `player` (@test-markov.R#206)  ────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_markov(...)
    4. comperank::rate_markov(...)
    5. comperes::h2h_long(cr, ..., fill = fill)
    4. dplyr::mutate(., player = as.character(.data$player))
   11. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 33. Error: rank_markov handles numeric `player` (@test-markov.R#225)  ───────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_markov(...)
    4. comperank::rate_markov(...)
    5. comperes::h2h_long(cr, ..., fill = fill)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 34. Error: rank_markov uses argument `fill` (@test-markov.R#243)  ───────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_markov(...)
    4. comperank::rate_markov(...)
    5. comperes::h2h_long(cr, ..., fill = fill)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   24. comperes:::repair_widecr(res, ...)
   25. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   34. ellipsis::check_dots_used()
   36. ellipsis:::exit_handler(action)
   37. base::bquote(...)
  
  ── 35. Error: rate_massey works (@test-massey.R#14)  ───────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank:::expect_equal_tbls(rate_massey(cr_data), output_base)
    6. comperank::rate_massey(cr_data)
    7. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   35. comperes:::repair_widecr(res, ...)
   36. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   45. ellipsis::check_dots_used()
   47. ellipsis:::exit_handler(action)
   48. base::bquote(...)
  
  ── 36. Error: rate_massey works with factor `player` (@test-massey.R#22)  ──────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_massey(input_1)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
    4. dplyr::mutate(., player = as.character(.data$player))
   11. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 37. Error: rate_massey works with numeric `player` (@test-massey.R#40)  ─────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_massey(input)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 38. Error: rate_massey works with not all matchups present (@test-massey.R#60
  'where' must be an environment
  Backtrace:
    1. comperank::rate_massey(input)
    2. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   30. comperes:::repair_widecr(res, ...)
   31. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   40. ellipsis::check_dots_used()
   42. ellipsis:::exit_handler(action)
   43. base::bquote(...)
  
  ── 39. Error: rank_massey works (@test-massey.R#81)  ───────────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_massey(cr_data)
    4. comperank::rate_massey(cr_data)
    5. comperes::h2h_mat(cr, !!h2h_funs[["num"]], fill = 0)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   33. comperes:::repair_widecr(res, ...)
   34. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   43. ellipsis::check_dots_used()
   45. ellipsis:::exit_handler(action)
   46. base::bquote(...)
  
  ── 40. Error: rate_od works (@test-offense-defense.R#10)  ──────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_od(...)
    9. comperes::h2h_mat(., ..., fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 41. Error: rate_od handles factor `player` (@test-offense-defense.R#52)  ────
  'where' must be an environment
  Backtrace:
    1. comperank::rate_od(...)
    9. comperes::h2h_mat(., ..., fill = 0)
   11. comperes::h2h_long(., !!!dots)
    4. dplyr::mutate(., player = as.character(.data$player))
   11. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 42. Error: rate_od handles numeric `player` (@test-offense-defense.R#75)  ───
  'where' must be an environment
  Backtrace:
    1. comperank::rate_od(...)
    9. comperes::h2h_mat(., ..., fill = 0)
   11. comperes::h2h_long(., !!!dots)
   11. comperes::get_matchups(.)
    5. dplyr::left_join(...)
   13. comperes::as_widecr(.)
   37. comperes:::repair_widecr(res, ...)
   38. comperes::is_widecr(cr_data)
   16. tidyr::extract(...)
   47. ellipsis::check_dots_used()
   49. ellipsis:::exit_handler(action)
   50. base::bquote(...)
  
  ── 43. Error: rank_od works (@test-offense-defense.R#101)  ─────────────────────
  'where' must be an environment
  Backtrace:
    1. comperank::rank_od(...)
    5. comperank::rate_od(...)
   10. comperes::h2h_mat(., ..., fill = 0)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   41. comperes:::repair_widecr(res, ...)
   42. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   51. ellipsis::check_dots_used()
   53. ellipsis:::exit_handler(action)
   54. base::bquote(...)
  
  ── 44. Error: rank_od handles factor `player` (@test-offense-defense.R#135)  ───
  'where' must be an environment
  Backtrace:
    1. comperank::rank_od(...)
    5. comperank::rate_od(...)
   10. comperes::h2h_mat(., ..., fill = 0)
   12. comperes::h2h_long(., !!!dots)
    5. dplyr::mutate(., player = as.character(.data$player))
   12. comperes::get_matchups(.)
    7. dplyr::left_join(...)
   15. comperes::as_widecr(.)
   41. comperes:::repair_widecr(res, ...)
   42. comperes::is_widecr(cr_data)
   18. tidyr::extract(...)
   51. ellipsis::check_dots_used()
   53. ellipsis:::exit_handler(action)
   54. base::bquote(...)
  
  ── 45. Error: rank_od handles numeric `player` (@test-offense-defense.R#155)  ──
  'where' must be an environment
  Backtrace:
    1. comperank::rank_od(...)
    5. comperank::rate_od(...)
   10. comperes::h2h_mat(., ..., fill = 0)
   12. comperes::h2h_long(., !!!dots)
   12. comperes::get_matchups(.)
    6. dplyr::left_join(...)
   14. comperes::as_widecr(.)
   41. comperes:::repair_widecr(res, ...)
   42. comperes::is_widecr(cr_data)
   17. tidyr::extract(...)
   51. ellipsis::check_dots_used()
   53. ellipsis:::exit_handler(action)
   54. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 91 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 45 ]
  1. Error: rate_colley works (@test-colley.R#15) 
  2. Error: rate_colley works with factor `player` (@test-colley.R#25) 
  3. Error: rate_colley works with numeric `player` (@test-colley.R#42) 
  4. Error: rate_colley works with not all matchups present (@test-colley.R#51) 
  5. Error: rank_colley works (@test-colley.R#75) 
  6. Error: rate_elo works (@test-elo.R#15) 
  7. Error: rate_elo handles factor `player` (@test-elo.R#30) 
  8. Error: rate_elo handles numeric `player` (@test-elo.R#43) 
  9. Error: rate_elo handles data frame `initial_ratings` (@test-elo.R#54) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted