diff --git a/DESCRIPTION b/DESCRIPTION index b00fb7221777e318daa84c280c4c2b950d191ae1..7719b701bc30a4592838facb159ea4ecb4a2709d 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.2.16.7 +Version: 1.2.16.8 Date: 2019-05-24 Authors@R: c( person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), diff --git a/NEWS.rmd b/NEWS.rmd index f2a7219aa19e7144dc6e80381be703dee208bb69..4475cdeac0b1d46210e5b6ad28293b6211ccc1fd 100644 --- a/NEWS.rmd +++ b/NEWS.rmd @@ -14,7 +14,7 @@ output: -### 1.2.16.7 Release Notes (2019-05-23) +### 1.2.16.8 Release Notes (2019-05-23) #### New features diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R index ccb297b2e530a0c6b824ebd3516dc51a5566c068..d2bf53744da275247b1a9ac481aeb288b3d90704 100644 --- a/R/plot.OutputsModel.R +++ b/R/plot.OutputsModel.R @@ -79,7 +79,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = if (!is.character(which)) { stop("'which' must be a vector of character") } - if (any(!which %in% c("all", "synth", "ts", "perf", "PotEvap", "Precip", "Temp", "SnowPack", "Flows", "Error", "Regime", "CumFreq", "CorQQ"))) { + if (any(!which %in% c("all", "synth", "ts", "perf", "Precip", "PotEvap", "Temp", "SnowPack", "Flows", "Error", "Regime", "CumFreq", "CorQQ"))) { stop("incorrect element found in argument 'which':\nit can only contain 'all', 'synth', 'ts', 'perf', 'Precip', 'PotEvap', 'Temp', 'SnowPack', 'Error', 'Flows', 'Regime', 'CumFreq' or 'CorQQ'") } if (all(which %in% c("Temp", "SnowPack")) & !inherits(OutputsModel, "CemaNeige")) {