Running 'testthat.R' [204s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(czechrates)
  > 
  > test_check("czechrates")
  [ FAIL 17 | WARN 0 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-cnbfxrate.R:4:3'): expected input failures ───────────────────
  `cnbfxrate("asdf")` did not throw an error.
  ── Failure ('test-cnbfxrate.R:16:3'): data format ──────────────────────────────
  is.data.frame(cnbfxrate()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-cnbfxrate.R:17:3'): data format ────────────────────────────────
  Error in `expect_compare(">", act, exp)`: Result of comparison must be a single logical value
  Backtrace:
      ▆
   1. └─testthat::expect_gt(...) at test-cnbfxrate.R:17:2
   2.   └─testthat:::expect_compare(">", act, exp)
   3.     └─rlang::abort("Result of comparison must be a single logical value")
  ── Failure ('test-cnbfxrate.R:30:3'): known values ─────────────────────────────
  cnbfxrate(as.Date("2020-04-01"), "EUR")$rate not equal to 27.38.
  target is NULL, current is numeric
  ── Failure ('test-cnbfxrate.R:31:3'): known values ─────────────────────────────
  cnbfxrate(as.Date("2020-04-01"), "ILS")$rate not equal to 7.019.
  target is NULL, current is numeric
  ── Failure ('test-pribor.R:4:3'): expected input failures ──────────────────────
  `pribor("asdf")` did not throw an error.
  ── Failure ('test-pribor.R:5:3'): expected input failures ──────────────────────
  `pribor(as.Date("2020-04-01"), "asdf")` did not throw an error.
  ── Failure ('test-pribor.R:6:3'): expected input failures ──────────────────────
  `pribor(as.Date("2020-04-01"), c("1D", "asdf"))` did not throw an error.
  ── Failure ('test-pribor.R:18:3'): data format ─────────────────────────────────
  is.data.frame(pribor()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-pribor.R:19:3'): data format ───────────────────────────────────
  Error in `UseMethod("pull")`: no applicable method for 'pull' applied to an object of class "NULL"
  Backtrace:
      ▆
   1. ├─testthat::expect_true(inherits(pull(pribor(), 1), "Date")) at test-pribor.R:19:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::inherits(pull(pribor(), 1), "Date")
   5. └─dplyr::pull(pribor(), 1)
  ── Failure ('test-pribor.R:29:3'): known values ────────────────────────────────
  pribor(as.Date("1997-05-29"))$PRIBOR_1D not equal to 194.38/100.
  target is NULL, current is numeric
  ── Failure ('test-pribor.R:30:3'): known values ────────────────────────────────
  pribor(as.Date("1997-05-29"), c("1D", "1W"))$PRIBOR_1W not equal to 85.63/100.
  target is NULL, current is numeric
  ── Failure ('test-repo2w.R:18:3'): data format ─────────────────────────────────
  is.data.frame(repo2w()) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-repo2w.R:19:3'): data format ───────────────────────────────────
  Error in `UseMethod("pull")`: no applicable method for 'pull' applied to an object of class "NULL"
  Backtrace:
      ▆
   1. ├─testthat::expect_true(inherits(pull(repo2w(), 1), "Date")) at test-repo2w.R:19:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::inherits(pull(repo2w(), 1), "Date")
   5. └─dplyr::pull(repo2w(), 1)
  ── Failure ('test-repo2w.R:28:3'): known values ────────────────────────────────
  repo2w(as.Date("1997-05-29"))$REPO_2W not equal to 12.4/100.
  target is NULL, current is numeric
  ── Failure ('test-repo2w.R:29:3'): known values ────────────────────────────────
  repo2w(as.Date("2020-04-01"))$REPO_2W not equal to 1/100.
  target is NULL, current is numeric
  ── Failure ('test-repo2w.R:30:3'): known values ────────────────────────────────
  repo2w()$date_valid not equal to Sys.Date() - 1.
  target is NULL, current is Date
  
  [ FAIL 17 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted