tests/testthat/test-stars.R

test_that("stars", {
  data <- tibble::tibble(value = 1:5,
                         value2 = 2:6,
                         grid = parse_grid(c("1111", "2222", "3333", "4444", "5555"), "80km")) |>
    grid_as_stars()

  expect_s3_class(data, "stars")
})

Try the jpgrid package in your browser

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

jpgrid documentation built on May 29, 2024, 4:53 a.m.