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
0a005c7c
Commit
0a005c7c
authored
Aug 29, 2018
by
Delaigue Olivier
Browse files
v1.0.13.0 Ind_zeroes argument of CreateInputsCrit is deprecated
parent
7b73e330
Changes
4
Hide whitespace changes
Inline
Side-by-side
DESCRIPTION
View file @
0a005c7c
Package: airGR
Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.1
2.6
Version: 1.0.1
3.0
Date: 2018-08-29
Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
...
...
NEWS.rmd
View file @
0a005c7c
...
...
@@ -14,13 +14,15 @@ output:
### 1.0.1
2.6
Release Notes (2018-08-29)
### 1.0.1
3.0
Release Notes (2018-08-29)
#### Deprectated and defunct
- The <code>LatRad</code> argument is now deprecated in <code>PEdaily_Oudin()</code> and replaced by the <code>Lat</code> argument.
- The unused <code>Ind_zeroes</code> argument of the <code>CreateInputsCrit()</code> function is now deprecated.
#### Major user-visible changes
...
...
R/CreateInputsCrit.R
View file @
0a005c7c
...
...
@@ -84,22 +84,15 @@ CreateInputsCrit <- function(FUN_CRIT,
return
(
NULL
)
}
if
(
!
is.null
(
Ind_zeroes
))
{
if
(
!
is.vector
(
Ind_zeroes
))
{
stop
(
"Ind_zeroes must be a vector of integers \n"
)
return
(
NULL
)
}
if
(
!
is.integer
(
Ind_zeroes
))
{
stop
(
"Ind_zeroes must be a vector of integers \n"
)
return
(
NULL
)
}
if
(
!
missing
(
Ind_zeroes
))
{
warning
(
"Deprecated \"Ind_zeroes\" argument"
)
}
if
(
!
is.null
(
epsilon
))
{
if
(
!
is.vector
(
epsilon
)
|
length
(
epsilon
)
!=
1
|
!
is.numeric
(
epsilon
))
{
stop
(
"epsilon must be single numeric value \n"
)
return
(
NULL
)
}
epsilon
=
as.double
(
epsilon
)
}
...
...
@@ -118,7 +111,6 @@ CreateInputsCrit <- function(FUN_CRIT,
InputsCrit
<-
list
(
BoolCrit
=
BoolCrit
,
Qobs
=
Qobs
,
transfo
=
transfo
,
Ind_zeroes
=
Ind_zeroes
,
epsilon
=
epsilon
)
class
(
InputsCrit
)
<-
c
(
"InputsCrit"
,
ObjectClass
)
...
...
man/CreateInputsCrit.Rd
View file @
0a005c7c
...
...
@@ -27,7 +27,7 @@ CreateInputsCrit(FUN_CRIT, InputsModel, RunOptions, Qobs, BoolCrit = NULL,
\item{transfo}{(optional) [character] name of the transformation (e.g. \code{""}, \code{"sqrt"}, \code{"log"}, \code{"inv"}, \code{"sort"})}
\item{Ind_zeroes}{(
optional
) [numeric] indices of the time steps where zeroes are observed}
\item{Ind_zeroes}{(
deprecated
) [numeric] indices of the time steps where zeroes are observed}
\item{epsilon}{(optional) [numeric] epsilon to add to all Qobs and Qsim if \emph{$Ind_zeroes} is not empty}
...
...
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