I am attempting to solve a multiple script model using the command line via R.
This model runs without error when run in gamside IDE.
However, when running via the command line with the following commands in R:
Code: Select all
library(gdxrrw)
igdx("C:\\GAMS\\win64\\24.7");
system(paste0('C:\\GAMS\\win64\\24.7\\gams "C:\\GAMS\\win64\\24.7\\Projlib\\[path to model gms]'))
Code: Select all
gams: **** Error: Parameter error(s)
: Reading parameter(s) from "command line"
: *** Error Option keyword expected, saw "%"
: Finished reading from "command line"
The parameters passed in the model gms as part of the solve scripts call are:
Code: Select all
$set gamsparm "ide=%gams.ide% lo=%gams.lo% errorlog=%gams.errorlog% errmsg=1"
Running GAMS 24.7.3
Thanks