# \donttest{
data('ecospat.testData')
# data for Soldanella alpina
data.Solalp<- ecospat.testData[c("Soldanella_alpina","ddeg","mind","srad","slp","topo")]
# maxent modelling and cross-validated predictions
# path to maxent.jar file
path<- paste0(system.file(package="dismo"), "/java/maxent.jar")
if (file.exists(path) & require(rJava)) {
me.pred <- ecospat.cv.me(data.Solalp, names(data.Solalp)[1],
names(data.Solalp)[-1], K = 10, cv.lim = 10, jack.knife = FALSE)
}
# }
Run the code above in your browser using DataLab