readDeclarations: readDeclarations

Description Usage Arguments Value Author(s) See Also

View source: R/readDeclarations.R

Description

Reads all declarations given in a GAMS code and returns them.

Usage

1
2
3
4
5
readDeclarations(
  file,
  unlist = TRUE,
  types = c("scalar", "(positive |)variable", "parameter", "table", "equation", "set")
)

Arguments

file

A gams file or a vector containing GAMS code.

unlist

A logical indicating whether the output should be returned as a list separated by object type or a matrix.

types

of declarations to be read.

Value

Either a list of declared objects or a matrix containing object name, the sets the object depends on and the description.

Author(s)

Jan Philipp Dietrich

See Also

codeCheck


gms documentation built on July 2, 2020, 2:36 a.m.