tests/testthat/test-checks.R

test_that("multiplication works", {
  colnames(lga) <- c("lga", "geometry")
  check_res <- check_key(stations, meteo)
  class(check_res) <- "list"
  expect_snapshot(
    make_cubble(spatial = lga, temporal = covid, potential_match = check_res),
    error = TRUE
    )

  expect_snapshot(
    make_cubble(lga, covid, potential_match = check_res, key_use = "aaa"),
    error = TRUE
  )
})

Try the cubble package in your browser

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

cubble documentation built on Sept. 11, 2024, 7:19 p.m.