andrefaa / ENMTML

Create Ecological Niche Models with TheMetaLand
47 stars 13 forks source link

Error in { : task 1 failed - "error in evaluating the argument 'x' in selecting a method for function '%in%': $ operator is invalid for atomic vectors" #357

Open NimoLululu opened 9 months ago

NimoLululu commented 9 months ago

Hi guys,

I tried to run this code but encountered this error. Have you ever met this before? could you please provide some advice?

here is the code:

ENMTML(pred_dir ="F://ENMTML//PredictorsFolder", proj_dir = "F://ENMTML//projection Folder", result_dir="F://ENMTML//result", occ_file="F://ENMTML//OccurrencesFolder/Sp_train+test.txt", sp="species",x="longitude",y="latitude", min_occ=10, thin_occ=NULL, eval_occ="F://ENMTML//OccurrencesFolder/Sp_ind.txt", colin_var=NULL, imp_var= TRUE, sp_accessible_area=NULL, pseudoabs_method=c(method='RND'), pres_abs_ratio = 1, part=c(method='BOOT', replicates='10', proportion='0.7'), save_part = FALSE, save_final = TRUE, algorithm=c("RDF"), thr=c(type=c( 'SORENSEN', 'JACCARD')), msdm = NULL, ensemble = NULL, extrapolation = FALSE, cores = 1)

Warning in ENMTML(pred_dir = "F://ENMTML//PredictorsFolder", proj_dir = "F://ENMTML//projection Folder", : Adjusting data partition to one! Replicate ... 1 Total species to be modeled 1 Fitting Models.... Error in { : task 1 failed - "error in evaluating the argument 'x' in selecting a method for function '%in%': $ operator is invalid for atomic vectors"

Thanks!