ConsBiol-unibern / SDMtune

Performs Variables selection and model tuning for Species Distribution Models (SDMs). It provides also several utilities to display results.
https://consbiol-unibern.github.io/SDMtune/
Other
25 stars 8 forks source link

R crashes when training the model #39

Open Zeroo11 opened 7 months ago

Zeroo11 commented 7 months ago

Describe the bug

Hello, I ran the code according to SDMtune's tutorial (https://consbiol-unibern.github.io/SDMtune/):

# Train a Maxnet model
model <- train(method = "Maxnet", data = train)

It works fine.

fig1

But training the model a second time:

# Train a Maxent model
sdmtune_model <- train(method = "Maxent", data = data)

A crash occurs.

error

I also tested another tutorial (https://consbiol-unibern.github.io/SDMtune/articles/train-model.html):

default_model <- train(method = "Maxent",
                        data = data)

Also crashes.

fig3

How can I solve this problem?

Looking forward to your answer, thank you very much!

LinLin

Steps to reproduce the bug

library(SDMtune)

Session information

A crash occurs

Additional information

No response

Reproducible example

rogerio-bio commented 6 months ago

Hi @Zeroo11

The only thing I see that is different here is that in the first attempt you ran the model directly in the R script, in the other two attempts you used a markdown file, right? Maybe this is the problem.