tests/testthat/test_modelling.R

test_that('modelling function', {
  data(Env)
  data(Occurrences)
  Occurrences <- subset(Occurrences, Occurrences$SPECIES == 'elliptica')
  SDM <- modelling('GLM', Occurrences, Env,
                   Xcol = 'LONGITUDE', Ycol = 'LATITUDE', verbose = F)
  expect_is(SDM, 'GLM.SDM')
})
hugocalcad/LigthSSDM documentation built on June 22, 2019, 12:43 a.m.