Skip to content

Commit

Permalink
fix bug about set value when writing gdx
Browse files Browse the repository at this point in the history
  • Loading branch information
lolow committed Mar 7, 2016
1 parent aec452a commit 9b40e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gdxtools.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ write.gdx <- function(file, params=list(), removeLST=T, usetempdir=T){
fgms = file(gms, "w")
# collect and write sets
allsets = unique(unlist(lapply(params, names)))
allsets = subset(allsets, !allsets %in% c('*'))
allsets = subset(allsets, !allsets %in% c('*','value'))
for(i in seq_along(allsets)){
s = allsets[i]
writeLines(paste("set", s, "/"), fgms)
Expand Down

0 comments on commit 9b40e08

Please sign in to comment.