For a sensitivity and optimisation analysis of a GroIMP model through R, I call the model headless through a Windows shell command:
C: && cd “C:\Progra~1\Java\jdk-22\bin” && java -Xverify:none -Xmx14000m -jar “C:\Progra~1\GroIMP 2.1.3\core.jar” --headless “inputfile” “outputfile” --debug=INFO “model gs file” 2> “logfile”
Such a headless run is repeated for multiple input files in a row. However, this command opens and closes GroIMP for every model run. How can I modify the headless command such that GroIMP is only openend before the first model run and closed after the last?
Thank you!