Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 2, 2024 · 0 comments

Comments

@NimoLululu
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant