In-Code Documentation for ‘GAMS’

R package goxygen, version 1.0.3

Travis build status DOI codecov

Purpose and Functionality

A collection of tools which extract a model documentation from ‘GAMS’ code and comments. In order to use the package you need to install ‘pandoc’ and ‘pandoc-citeproc’ first (


For installation of the most recent package version an additional repository has to be added in R:

options(repos = c(CRAN = "@CRAN@", pik = ""))

The additional repository can be made available permanently by adding the line above to a file called .Rprofile stored in the home folder of your system (Sys.glob("~") in R returns the home directory).

After that the most recent version of the package can be installed using install.packages:


Package updates can be installed using update.packages (make sure that the additional repository has been added before running that command):



The package comes with a vignette describing the basic functionality of the package and how to use it. You can load it with the following command (the package needs to be installed):

vignette("goxygen") # Creating GAMS model documentations with goxygen

Questions / Problems

In case of questions / problems please contact Jan Philipp Dietrich


To cite package goxygen in publications use:

Dietrich J, Karstens K, Klein D, Baumstark L (2020). goxygen: In-Code Documentation for ‘GAMS’. doi: 10.5281/zenodo.1411404 (URL:, R package version 1.0.3, <URL:>.

A BibTeX entry for LaTeX users is

 title = {goxygen: In-Code Documentation for 'GAMS'},
 author = {Jan Philipp Dietrich and Kristine Karstens and David Klein and Lavinia Baumstark},
 year = {2020},
 note = {R package version 1.0.3},
 doi = {10.5281/zenodo.1411404},
 url = {},