我的代码输出给出了这个错误消息,我无法修复它。代码本身很长,所以我只给你我认为不起作用的部分,但请询问你是否需要查看更多内容。
在我看来,一切都很好,我的电脑上有最新版本的 Java。起初,我认为错误来自C:\Users\Liberty Land\Documents\XXXX\XXXX/maxent.jar
因为在 maxent 之前有 '/' 但我尝试了所有可能的组合,但它仍然不起作用。
谢谢您的帮助。
代码:
model.runs <- BIOMOD_Modeling(run.data,
models = models,
NbRunEval = 1,
VarImport = 20,
SaveObj = T,
Yweights = NULL,
rescal.all.models = FALSE,
models.options = BIOMOD_ModelingOptions(
GAM = list(k=3),
MAXENT.Phillips = list(path_to_maxent.jar = "C:/Users/Liberty Land/Documents/XXXX/XXXX")))
save(model.runs, file = paste0("model.runs", sep = ""))
输出:
Model=MAXENT.Phillips
Creating Maxent Temp Proj Data..
Running Maxent...
Getting predictions...Error in file(file, "rt") : cannot open the connexion
Moreover : Warning messages:
1: In system(command = maxent.cmd, wait = TRUE, intern = TRUE, ignore.stdout = FALSE, :
execution of command 'java -mx512m -jar C:\Users\Liberty Land\Documents\XXXX\XXXX/maxent.jar environmentallayers="NAME/models/1616502543/m_15742330/Back_swd.csv" samplesfile="NAME/models/1616502543/m_15742330/Sp_swd.csv" projectionlayers="NAME/models/1616502543/m_15742330/Predictions/Pred_swd.csv" outputdirectory="NAME/models/1616502543/NAME_PA5_Full_MAXENT.Phillips_outputs" outputformat=logistic redoifexists visible=FALSE linear=TRUE quadratic=TRUE product=TRUE threshold=TRUE hinge=TRUE lq2lqptthreshold=80 l2lqthreshold=10 hingethreshold=15 beta_threshold=-1 beta_categorical=-1 beta_lqp=-1 beta_hinge=-1 betamultiplier=1 defaultprevalence=0.5 autorun nowarnings notooltips noaddsamplestobackground' returns a status of 1