tests/testthat/test_getIsoscapes.R

iso = getIsoscapes("CaribSr")
iso2 = getIsoscapes("CaribSr")

test_that("getIsoscapes works",{
  if(!is.null(iso)){
    expect_is(iso, "SpatRaster")
  }
  expect_equal(iso, iso2)
  expect_error(getIsoscapes("USPrecipALLs"))
})
SPATIAL-Lab/assignR documentation built on Dec. 8, 2024, 5:48 p.m.