我正在使用R版本3.6.0。我做了一些biomod模型。我的环境变量中有一个因素。当我尝试创建响应图时,会出现此错误:
Error in subinfo == "MinMax" :
comparison (1) is possible only for atomic and list types
我使用的代码是:
SumGBMs <- BIOMOD_LoadModels(WgBiomodModelOut, models='GBM')
SumGBM_repcurves <- response.plot2(model= SumGBMs ,
Data = WgBiomodModelOut,
show.variables= get_formal_data(WgBiomodModelOut, dem),
fixed.var.metric = 'median',
col = c("blue", "red"),
legend = TRUE,
plot=T)
尽管我不认为这是问题所在,但我尝试使用github biomod2:
devtools::install_github("biomodhub/biomod2", dependencies = TRUE)
但是它不起作用,并且出现以下erro0r:
Error: Failed to install 'biomod2' from GitHub:
(converted from warning) installation of package ‘C:/Users/NP/AppData/Local/Temp/RtmpAtIiba/file70c6f00293b/biomod2_3.4-03.tar.gz’ had non-zero exit status
你能告诉我哪里出了问题吗?
谢谢