set_sys_dir: Set GAMS system directory

Description Usage Arguments Details

View source: R/sys_dir.R

Description

Set the GAMS installation to use for testing by specifying the system directory where the GAMS binaries and libraries are installed. There can be multiple GAMS versions installed, so this functions selects the GAMS version to test with. Specifically, the GDX libraries and GAMS compiler/interpreter located in the set GAMS system directory will be used by the functions in the testGAMS package.

Usage

1
set_sys_dir(gams_sys_dir)

Arguments

gams_sys_dir

Path to GAMS system directory.

Details

Internally, this function uses gdxrrw::igdx() via which GDX files are accessed. The currently-set system directory is returned by get_sys_dir().

This function throws an error if the given directory cannot be set.


iiasa/testGAMS documentation built on Sept. 14, 2021, 1:04 p.m.