- Products and services
- Resources and support
- About us
- Log in/Register
As I recently upgraded to Simile 6.7, my R scripts, which were working fine with v6.6, no longer work.
The following error appears:
> consult.parameter.metafile(handle,"C:/Users/othoniel/Desktop/PhD/MIMES/Module 3 Research model/Steinsel Model - Scenarios/Steinsel_LandUseChanges_Pollination_1.spf")
Error in structure(.External(.C_dotTclObjv, objv), class = "tclObj") :
[tcl] can't read "runState(node00000,reloadParams)": no such variable.
It seems that R (or Tcl) fails to load .spf files. The same parameters can be set using the set.model.parameter function, which works well. I did the .spf files using the 6.7 version of Simile. Below is the part of the code that comes before the issue, in case it comes from here, although I don't think so...
I hope you will be able to deal with this issue quickly, we need to make the model run through R very soon... Otherwise, if you cannot solve it now, would it be possible to get back to the 6.6 version of Simile for the moment? The same code worked fine there.
I can send you by personal message the model, .spf etc.. if you need to test.
Thanks in advance.
# Path to the compiled binary of the Simile model
MODEL_PATH<-"C:/Users/othoniel/Desktop/PhD/MIMES/Module 3 Research model/Steinsel Model - Scenarios/R_Run/Steinsel_LandUseChanges_Pollination_1.dll"
# Path to the .spf file storing the model's data (the .spf is made in Simile)
SPF_PATH<-"C:/Users/othoniel/Desktop/PhD/MIMES/Module 3 Research model/Steinsel Model - Scenarios/Steinsel_LandUseChanges_Pollination_1.spf"
# __ Model loading __ #
# __ Base parameters loading __ #