tests/testthat/test-create.R

ex <- c(10, 20, -10, 20)
test_that("create works", {
  expect_silent(vapour_create(tf <- tempfile(fileext = ".tif"), dimension = c(10, 5), extent = ex)) |> expect_equal(tf)
  expect_silent(info <- vapour_raster_info(tf))  
  expect_equal(info$extent, ex)
  expect_equal(info$dimension, c(10, 5))
})

Try the vapour package in your browser

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

vapour documentation built on June 22, 2024, 10:01 a.m.