gamsr is a small package that helps importing all or selected data from a gdx file generated by GAMS using a single command.
# The development version from GitHub
# install.packages("devtools")
devtools::install_github("arnyeinstein/gamsr")
library(gamsr)
import_gdxfile("trnsport.gdx") # Reads all data from a gdx file
import_gdxfile("trnsport.gdx", c("z","d")) # Reads selected data from a file.