tests/testthat/test-SDMmodelCV-class.R

test_that("Show method for SDMmodelCV class produces the correct output", {
  m <- SDMtune:::bm_maxent_cv
  expect_snapshot(m)
  m@data@data <- SDMtune:::t@data[, 1:3]
  expect_snapshot(m)
  m@data@data <- SDMtune:::t@data[, "biome", drop = FALSE]
  expect_snapshot(m)
  m <- SDMtune:::bm_maxnet_cv
  expect_snapshot(m)
})

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.