From 544a6a46b15e93d7d843577ea44b161f6c62ec91 Mon Sep 17 00:00:00 2001 From: Delaigue Olivier <olivier.delaigue@irstea.priv> Date: Fri, 18 Jan 2019 15:24:42 +0100 Subject: [PATCH] v1.1.2.31 CLEAN warning message modified in CreateRunOptions #5422 --- DESCRIPTION | 2 +- NEWS.rmd | 2 +- R/CreateRunOptions.R | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 22fe42a2..cb138342 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.1.2.30 +Version: 1.1.2.31 Date: 2019-01-18 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 860e476a..b2c9bad0 100644 --- a/NEWS.rmd +++ b/NEWS.rmd @@ -13,7 +13,7 @@ output: -### 1.1.2.30 Release Notes (2019-01-18) +### 1.1.2.31 Release Notes (2019-01-18) diff --git a/R/CreateRunOptions.R b/R/CreateRunOptions.R index e04b399f..cdc6fad0 100644 --- a/R/CreateRunOptions.R +++ b/R/CreateRunOptions.R @@ -394,8 +394,9 @@ CreateRunOptions <- function(FUN_MOD, InputsModel, IndPeriod_WarmUp = NULL, IndP MeanAnSolidPrecip <- rep(mean(SolidPrecip) * Factor, NLayers) ### default value: same Gseuil for all layers if (warnings) { - warning("\t MeanAnSolidPrecip not defined -> it was automatically set to c(", - paste(round(MeanAnSolidPrecip), collapse = ","), ") \n") + warning("\t 'MeanAnSolidPrecip' not defined -> it was automatically set to c(", + paste(round(MeanAnSolidPrecip), collapse = ","), ") from the 'InputsModel' given to the function. ", + "Be careful in case your application is (short-term) forecasting.\n") } } if ("CemaNeige" %in% ObjectClass & !is.null(MeanAnSolidPrecip)) { -- GitLab