tests/testthat/test-get_chelsa.R

test_that("get_chelsa works", {
  skip_on_cran()

  expect_error(get_chelsa(1970))
  gc <- get_chelsa(years = 2010)
  expect_silent(.check_resource_fun(gc))
  fps <- gc(aoi)
  expect_silent(fps <- .check_footprints(fps))
  expect_equal(nrow(fps), 12)
})

Try the mapme.biodiversity package in your browser

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

mapme.biodiversity documentation built on June 8, 2025, 1:42 p.m.