tests/testthat/test-KGClimateClass.R

context("KGClimateClass")

test_that("Test KGClimateClass function", {

  # Define a bounding box
  areaBox <- raster::extent(-3.82, -3.63, 52.41, 52.52)
  # Get climate classes
  x <- try(KGClimateClass(areaBox = areaBox), silent = TRUE)

  expect_that(all(dim(x) == c(1, 3)), equals(TRUE))

})

Try the hddtools package in your browser

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

hddtools documentation built on Feb. 15, 2021, 1:08 a.m.