From 631684221459fbe79d0c6cb8a0b3730db24f3cac Mon Sep 17 00:00:00 2001 From: Laurent Drouet Date: Thu, 10 Mar 2016 17:25:34 +0100 Subject: [PATCH] right version --- DESCRIPTION | 4 ++-- R/gdx.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index cd7e45c..7b6dbfe 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: gdxtools Type: Package Title: Manipulate GDX Files -Version: 0.3.1 -Date: 2016-03-07 +Version: 0.3.2 +Date: 2016-03-10 Authors@R: person("Laurent", "Drouet", ,"ldrouet@gmail.com", role = c("aut", "cre")) Description: Get info on GDX files (GAMS database exchange files) and convert parameters and variables data into data.frame. diff --git a/R/gdx.R b/R/gdx.R index b06d4c5..a2cf4da 100644 --- a/R/gdx.R +++ b/R/gdx.R @@ -71,7 +71,7 @@ extract.gdx <- function(x, item, field = "l", addgdxname = F, ...) { } else if(item %in% x$sets$name){ res = gdxrrw::rgdx(x$filename, list(name = item), squeeze = F) text = x$sets$text[item==x$sets$name] - }else { + } else { warning("item not found") return(NULL) }