readDeclarations: readDeclarations

View source: R/readDeclarations.R

readDeclarationsR Documentation

readDeclarations

Description

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

Usage

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 June 29, 2024, 9:07 a.m.