tests/testthat/test-unfold.R

test_that("unfold() works", {
  expect_snapshot(climate_mel |> face_temporal() |> unfold(long, lat))
  expect_snapshot(climate_mel |> face_temporal() |> unfold(dplyr::starts_with("l")))
  expect_snapshot(climate_mel |> unfold(), error = TRUE)
  expect_snapshot(climate_mel |> face_temporal() |> make_temporal_tsibble() |> unfold(long, lat))
})

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.