BiologicalRecordsCentre / sparta

Species Presence/Absence R Trends Analyses
http://biologicalrecordscentre.github.io/sparta/index.html
MIT License
21 stars 24 forks source link

confusing behaviour in getModelFile() #250

Open drnickisaac opened 1 year ago

drnickisaac commented 1 year ago

getModelFile() reads text files for different model options. I've long wanted to replace this with a proper meta-coded solution.

I've noticed that if regions are present, getmodelFile() ignores the contents of the text files and instead creates code on the fly. But it assembles the code using random walk model and other current options. If the user specified something different, there is no message to warn that the options have been overridden.

drnickisaac commented 1 year ago

I've done a temporary fix by adding a warning of this behaviour.