diff --git a/.buildlibrary b/.buildlibrary index ab176a3d..9330864e 100644 --- a/.buildlibrary +++ b/.buildlibrary @@ -15,3 +15,4 @@ AcceptedNotes: AutocreateReadme: yes allowLinterWarnings: yes enforceVersionUpdate: yes + diff --git a/R/convGDX2MIF.R b/R/convGDX2MIF.R index c1cdc75e..b6b8c14d 100644 --- a/R/convGDX2MIF.R +++ b/R/convGDX2MIF.R @@ -87,7 +87,7 @@ convGDX2MIF <- function(gdx, gdx_ref = NULL, file = NULL, scenario = "default", output <- mbind(output,reportCrossVariables(gdx,output,regionSubsetList,t)[,t,]) # Report policy costs, if possible and sensible - if (!is.null(gdx_refpolicycost)) { + if (is.null(gdx_refpolicycost)) { gdx_refpolicycost <- gdx message("gdx_refpolicycost not defined, report 0 everywhere.") }