tests/testthat/test-maxentTh.R

test_that("Raise the exception", {
  expect_snapshot_error(maxentTh(SDMtune:::bm_maxnet))
})

test_that("Create the correct output", {
  expect_named(maxentTh(SDMtune:::bm_maxent))
  expect_s3_class(maxentTh(SDMtune:::bm_maxent), "data.frame")
})

Try the SDMtune package in your browser

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

SDMtune documentation built on April 4, 2025, 1:11 a.m.