tests/testthat/test_stack_modelling.R

test_that('stack modelling function', {
  data(Env)
  data(Occurrences)
  SSDM <- stack_modelling(c('CTA', 'KSVM'), Occurrences, Env, rep = 1,
                         Xcol = 'LONGITUDE', Ycol = 'LATITUDE',
                         Spcol = 'SPECIES', ensemble.thresh = 0,
                         verbose = FALSE, cores = 0)
  expect_is(SSDM, 'Stacked.SDM')
})
hugocalcad/LigthSSDM documentation built on June 22, 2019, 12:43 a.m.