powered by
Cleans GAMS code supplied from empty lines and comments.
GAMScodeFilter(x)
The cleaned GAMS code
A vector with lines of GAMS code (as you get by reading the code with readLines)
Jan Philipp Dietrich
readDeclarations
GAMScodeFilter(c("","*comment","a=12;","","b=13;"))
Run the code above in your browser using DataLab