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"))
})

Try the assignR package in your browser

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

assignR documentation built on April 3, 2025, 7:22 p.m.