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
f8853815
Commit
f8853815
authored
Jan 19, 2017
by
unknown
Browse files
v1.0.5.4 Bug fixed in plot.OutputsModel. There is no more error return when which = "Temp" #4490
parent
34bd0f89
Changes
3
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
f8853815
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")),
...
...
R/plot.OutputsModel.R
View file @
f8853815
...
...
@@ -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
);
}
...
...
inst/CITATION
View file @
f8853815
...
...
@@ -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 = " ")
)
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