tests/testthat/test-cdi.R

test_that("cdi", {
  skip_on_cran()
  skip_if_offline()

  # first call
  cdi_1 <- cdi_get()

  # seconde call (cached ver)
  cdi_2 <- cdi_get()

  expect_true(nrow(cdi_1) > 0)
  expect_equal(cdi_1, cdi_2)

  idi <- idi_get()
  expect_true(nrow(idi) > 0)
})

Try the rb3 package in your browser

Any scripts or data that you put into this service are public.

rb3 documentation built on April 14, 2023, 5:10 p.m.