Running ‘testthat.R’ [5s/130s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(czechrates)
  > 
  > test_check("czechrates")
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 17 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── 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.
  ── 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
  
  [ FAIL 9 | WARN 0 | SKIP 0 | PASS 17 ]
  Error: Test failures
  Execution halted