Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
HYCAR-Hydro
airGR
Commits
04847de5
Commit
04847de5
authored
Mar 28, 2019
by
Delaigue Olivier
Browse files
v1.2.12.3 CLEAN: minor syntax revision of message in ErrorCrit
parent
c42de9a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
04847de5
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.2.12.
2
Version: 1.2.12.
3
Date: 2019-03-29
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
...
...
NEWS.rmd
View file @
04847de5
...
...
@@ -13,7 +13,7 @@ output:
### 1.2.12.
2
Release Notes (2019-03-28)
### 1.2.12.
3
Release Notes (2019-03-28)
...
...
R/ErrorCrit.R
View file @
04847de5
...
...
@@ -59,9 +59,9 @@ ErrorCrit <- function(InputsCrit, OutputsModel, FUN_CRIT, warnings = TRUE, verbo
message
(
"Crit. Composite = "
,
sprintf
(
"%.4f"
,
CritValue
))
msgForm
<-
paste
(
sprintf
(
"%.2f"
,
listweights
),
listNameCrit
,
sep
=
" * "
,
collapse
=
", "
)
msgForm
<-
unlist
(
strsplit
(
msgForm
,
split
=
","
))
msgFormSep
<-
rep
(
c
(
","
,
","
,
",\n\t\t
"
),
times
=
ceiling
(
length
(
msgForm
)
/
3
))[
1
:
length
(
msgForm
)]
msgFormSep
<-
rep
(
c
(
","
,
","
,
",\n\t\t "
),
times
=
ceiling
(
length
(
msgForm
)
/
3
))[
1
:
length
(
msgForm
)]
msgForm
<-
paste
(
msgForm
,
msgFormSep
,
sep
=
""
,
collapse
=
""
)
msgForm
<-
gsub
(
"\\,\\\n\\\t\\\t
$|\\,$"
,
""
,
msgForm
)
msgForm
<-
gsub
(
"\\,\\\n\\\t\\\t $|\\,$"
,
""
,
msgForm
)
message
(
"\tFormula: sum("
,
msgForm
,
")\n"
)
}
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment