get_sys_dir: Get GAMS system directory

Description Usage Details Value Examples

View source: R/sys_dir.R

Description

Get the path to the GAMS system directory being used for testing. This is the GAMS installation directory where the GDX libraries and GAMS compiler/interpreter will be loaded from. It therefore determines which GAMS version is used for testing. The GAMS system directory can be set with set_sys_dir().

Usage

1

Details

When no system directory is set yet, this function will try to get and set a default system directory from an environment variable, first R_GAMS_SYSDIR, and if not available via PATH (on Windows) or LD_LIBRARY_PATH (on Linux). If no such default is available either, this function throws an error.

Value

Path to the in-use GAMS system directory.

Examples

1
sys_dir <- get_sys_dir()

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