Running ‘spelling.R’
  Running ‘testthat.R’ [7s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(toRvik)
  > library(purrr)
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  > library(utils)
  > 
  > test_check("toRvik")
  [ FAIL 14 | WARN 0 | SKIP 4 | PASS 28 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (4)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-player.R:14:3): stat input must match ─────────────────────────
  `bart_player_season(stat = "Box")` did not throw the expected message.
  ── Failure (test-player.R:15:3): stat input must match ─────────────────────────
  `bart_player_game(stat = "Box")` did not throw the expected message.
  ── Failure (test-rating.R:9:3): archive cuts off before 2014-15 ────────────────
  `bart_archive("2014-01-01")` did not throw the expected message.
  ── Failure (test-rating.R:13:3): date range works with one end ─────────────────
  `str\(bart_factors\(start = "2022-01-01"\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(...) at test-rating.R:13:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:14:3): date range works with one end ─────────────────
  `str\(bart_factors\(end = "2022-01-01"\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(...) at test-rating.R:14:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:15:3): date range works with one end ─────────────────
  `str\(bart_conf_factors\(start = "2022-01-01"\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(...) at test-rating.R:15:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:16:3): date range works with one end ─────────────────
  `str\(bart_conf_factors\(end = "2022-01-01"\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(...) at test-rating.R:16:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:20:3): runs without date range ───────────────────────
  `str\(bart_factors\(\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(str(bart_factors()), "toRvik_data") at test-rating.R:20:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:21:3): runs without date range ───────────────────────
  `str\(bart_conf_factors\(\)\)` does not match "toRvik_data".
  Actual value: "'data\.frame':\\t0 obs\. of  0 variables"
  Backtrace:
      ▆
   1. └─testthat::expect_output(str(bart_conf_factors()), "toRvik_data") at test-rating.R:21:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure (test-rating.R:25:3): location values must be exact ─────────────────
  `bart_factors(location = "Home")` did not throw the expected message.
  ── Failure (test-rating.R:26:3): location values must be exact ─────────────────
  `bart_conf_factors(location = "Home")` did not throw the expected message.
  ── Failure (test-rating.R:30:3): location values must be exact ─────────────────
  `bart_factors(type = "NC")` did not throw the expected message.
  ── Failure (test-rating.R:31:3): location values must be exact ─────────────────
  `bart_conf_factors(type = "NC")` did not throw the expected message.
  ── Failure (test-team.R:14:3): split input must match ──────────────────────────
  `bart_team_box(split = "Month")` did not throw the expected message.
  
  [ FAIL 14 | WARN 0 | SKIP 4 | PASS 28 ]
  Error: Test failures
  Execution halted