tests/testthat/test-bioclimate.R

test_that("bioclimate() fails gracefully", {
  expect_error(bioclimate(matrix(1:11, 11), matrix(1:11)),
               "12 months")
  expect_error(bioclimate(matrix(1:24, 12), matrix(1:12)),
               "should have the same dimensions")
})

Try the climenv package in your browser

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

climenv documentation built on Nov. 3, 2023, 1:08 a.m.