Closed hancock-da closed 1 month ago
Hi !
On Windows, you may have an issue with path length, in which case I suggest moving your folder higher in the folder hierarchy to have a shorter path. You can also have a look at the issue https://github.com/biomodhub/biomod2/issues/412 where Joost finds another solution. Tell me if this does the trick !
Hélène
Error and context I'm trying to build ENMs with biomod2 v4.2.4 for several populations within species. This means that I have a hierarchical output structure, and the dir.name in BIOMOD_FormatingData is a path to the species folder, with the output sent to each population within that folder (this should become clearer in the code below). This mostly works, however, I have noticed that when I set the dir.name="output_test/symphodus.melops", the formatting and modelling work fine, and the correct directories are created within that path, but the BIOMOD_EnsembleModeling function can now no longer find the ...mergedAlgo.predictions file it needs (see error message below).
I have tested exactly the same code but with dir.name="output_test" and everything runs smoothly, it is only when I change dir.name to "output_test/symphodus.melops" that the error is thrown.
Code used to get the error
Environment Information
Additional information The directory in the path in the error thrown indeed exists ('output_test/symphodus.melops/symphodus.melops.test/.BIOMOD_DATA/symphodus.melops.test_models/ensemble.models/ensemble.models.predictions/) and it is only when dir.name is "output_test/symphodus.melops" that there is any error during BIOMOD_EnsembleModeling.