
Inline a GAMS model's $include files into one self-contained string
Source: R/neos.R
neos_gams_inline.RdRecursively splices the contents of every $include "file" / $batinclude
directive in main (resolved against base_dir) into a single GAMS source
string. Use it to bundle a text-mode energyRt GAMS scenario (model plus the
$included text data files) for submission to NEOS with no input GDX and
no local GAMS install.
Usage
neos_gams_inline(main, base_dir = dirname(main), flatten = TRUE)