2

パッケージ biomod2 で R から maxent を実行していますが、次のエラーが表示されました。私は技術的なバックグラウンドを持っていないため、このエラーが発生する理由がわかりませんでした。それはメモリの問題ですか、それとも誰かが Java パスが設定されていないと言いました。しかし、指示に従って R で実行するように maxent を設定し、Java Platform, Standard Edition Development Kit をダウンロードし、この pdf で説明されているようにパスを設定しました: http://modata.ceoe.udel.edu/dev/dhaussee/ class_rcode/r_pkgmanuals/MAXENT4R_directions.pdf

この問題とその解決策を理解するのを手伝っていただければ、本当に感謝しています。

どうもありがとう

Error in file(file, "rt") : cannot open the connection
In addition: Warning messages:
1: running command 'java' had status 1 
2: running command 'java -mx512m -jar E:\bioclim_2.5min\model/maxent.jar environmentallayers
="rainfed/models/1432733200/m_47203134/Back_swd.csv" 
samplesfile="rainfed/models/1432733200/m_47203134/Sp_swd.csv" 
projectionlayers="rainfed/models/1432733200/m_47203134/Predictions/Pred_swd.csv" 
outputdirectory="rainfed/models/1432733200/rainfed_PA1_Full_MAXENT_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 defaultprevalence=0.5 autorun nowarnings notooltips 
noaddsamplestobackground' had status 1 
3: In file(file, "rt") :
 cannot open file 'rainfed/models/1432733200/rainfed_PA1_Full_MAXENT_outputs/rainfed_PA1_
Full_Pred_swd.csv': No such file or directory
4

1 に答える 1

2

私はちょうどこの問題を解決することができました - それは指定されたファイルパスの問題です。私にとっては、maxent.jarファイルへのパスで受け入れられなかったフォルダー名の 1 つにスペースがありました。エラーを見ると、2 つのバックスラッシュのように見えます。

E:\bioclim_2.5min\model/maxent.jar

おそらく読むべき

E:/bioclim_2.5min/model/maxent.jar
于 2016-03-01T14:48:22.413 に答える