# \donttest{
library(dismo)
data('ecospat.testData')
# data for Soldanella alpina
data.Solalp<- ecospat.testData[c("Soldanella_alpina","ddeg","mind","srad","slp","topo")]
# path to maxent.jar file
path<- paste0(system.file(package="dismo"), "/java/maxent.jar")
if (file.exists(path) & require(rJava)) {
me <- maxent(data.Solalp[,-1],data.Solalp[,1])
ecospat.maxentvarimport (model=me, dfvar=data.Solalp[,-1], nperm=5)
}
# }
Run the code above in your browser using DataLab