tests/testthat/test-get_gmw.R

test_that(".get_gmw works", {
  skip_on_cran()

  expect_error(get_gmw(2011))
  expect_silent(gmw <- get_gmw(years = 2007:2008))
  expect_silent(.check_resource_fun(gmw))
  expect_silent(fps <- gmw())
  expect_silent(.check_footprints(fps))
  expect_equal(fps$filename, c("gmw_v3_2007_vec.gpkg", "gmw_v3_2008_vec.gpkg"))
})

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.