From f885381576121c236d8c5a39a545b769067a88c3 Mon Sep 17 00:00:00 2001
From: unknown <olivier.delaigue@ANPI1430.antony.irstea.priv>
Date: Thu, 19 Jan 2017 10:21:12 +0100
Subject: [PATCH] v1.0.5.4 Bug fixed in plot.OutputsModel. There is no more
 error return when which = "Temp" #4490

---
 DESCRIPTION           | 2 +-
 R/plot.OutputsModel.R | 2 +-
 inst/CITATION         | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 1bcda4c1..a9db799f 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
 Package: airGR
 Type: Package
 Title: Suite of GR hydrological models for precipitation-runoff modelling
-Version: 1.0.5.3
+Version: 1.0.5.4
 Date: 2017-01-19
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl")),
diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R
index a4ed9fe9..9c0c4f54 100644
--- a/R/plot.OutputsModel.R
+++ b/R/plot.OutputsModel.R
@@ -21,7 +21,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
   if( is.null(     which)){ stop("which must be a vector of character \n"); return(NULL); } 
   if(!is.vector(   which)){ stop("which must be a vector of character \n"); return(NULL); } 
   if(!is.character(which)){ stop("which must be a vector of character \n"); return(NULL); } 
-  if(sum(which %in% c("all", "Precip", "SnowPack", "Flows", "Regime", "CumFreq", "CorQQ") == FALSE) != 0){
+  if(sum(which %in% c("all", "Precip", 'Temp', "SnowPack", "Flows", "Regime", "CumFreq", "CorQQ") == FALSE) != 0){
     cat("Incorrect element found in which \n");
     stop("which can only contain 'all', 'Precip', 'Temp', 'SnowPack', 'Flows', 'Regime', 'CumFreq' or 'CorQQ') \n");
     return(NULL); } 
diff --git a/inst/CITATION b/inst/CITATION
index bc2ca96a..ff9a0e5d 100644
--- a/inst/CITATION
+++ b/inst/CITATION
@@ -18,13 +18,13 @@ citEntry(entry="Manual",
     author = personList(as.person("L. Coron"), as.person("C. Perrin"), as.person("C. Michel")),
 	journal = "R News",
   	year = "2017",
-    note = "R package version 1.0.5.3",
+    note = "R package version 1.0.5.4",
     url = "https://webgr.irstea.fr/airGR/?lang=en",
         textVersion = 
         paste("Coron, L., Perrin, C. and Michel, C.",
 			  "(2017).", 
               "airGR: Suite of GR hydrological models for precipitation-runoff modelling.",
-              "R package version 1.0.5.3.",
+              "R package version 1.0.5.4.",
               "https://webgr.irstea.fr/airGR/?lang=en.",
               sep = " ")
          )
-- 
GitLab