Skip to content

Cleans GAMS code supplied from empty lines and comments.

Usage

GAMScodeFilter(x)

Arguments

x

A vector with lines of GAMS code (as you get by reading the code with readLines)

Value

The cleaned GAMS code

See also

Author

Jan Philipp Dietrich

Examples


GAMScodeFilter(c("","*comment","a=12;","","b=13;"))
#> [1] "a=12;" "b=13;"