Debugging error from command line in R
Posted: Thu Aug 30, 2018 4:53 am
Hi all,
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:
The GDX API loads and runs but there is the following error in the R console part way through:
The parameters passed in the model gms as part of the solve scripts call are:
Any ideas what may cause this, or how I might debug this?
Running GAMS 24.7.3
Thanks
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