tests/testthat/test-calculate_coobs.R

test_that("Total outputs", {
  skip_on_cran()

  o <- calculate_coobs(mraster = mrastersmall[[1:2]], existing = existing, plot = TRUE, cores = 4)

  expect_equal(nrow(o), 110L)
  expect_equal(ncol(o), 141L)
  expect_equal(nlyr(o), 2L)

  expect_named(o, c("COOB", "COOBclass"))

  expect_s4_class(o, "SpatRaster")
})

Try the sgsR package in your browser

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

sgsR documentation built on May 29, 2024, 4:59 a.m.