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")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.