Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [6s/11s]
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 10 | WARN 0 | SKIP 2 | PASS 29 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-rating.R:9'): 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:9:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:10'): 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:10:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:11'): 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:11:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:12'): 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:12:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:16'): 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:16:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:17'): 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:17:2
   2.   └─testthat::expect_match(...)
   3.     └─testthat:::expect_match_(...)
  ── Failure ('test-rating.R:21'): location values must be exact ─────────────────
  `bart_factors(location = "Home")` did not throw the expected message.
  ── Failure ('test-rating.R:22'): location values must be exact ─────────────────
  `bart_conf_factors(location = "Home")` did not throw the expected message.
  ── Failure ('test-rating.R:26'): location values must be exact ─────────────────
  `bart_factors(type = "NC")` did not throw the expected message.
  ── Failure ('test-rating.R:27'): location values must be exact ─────────────────
  `bart_conf_factors(type = "NC")` did not throw the expected message.
  
  [ FAIL 10 | WARN 0 | SKIP 2 | PASS 29 ]
  Error: Test failures
  Execution halted