Commit 493d6154 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

v1.0.13.6 ErrorCrit* function cleaned

parent a3c00a9b
Package: airGR Package: airGR
Type: Package Type: Package
Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
Version: 1.0.13.5 Version: 1.0.13.6
Date: 2018-08-29 Date: 2018-08-29
Authors@R: c( Authors@R: c(
person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")), person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
......
...@@ -14,7 +14,7 @@ output: ...@@ -14,7 +14,7 @@ output:
### 1.0.13.5 Release Notes (2018-08-29) ### 1.0.13.6 Release Notes (2018-08-29)
#### Deprectated and defunct #### Deprectated and defunct
......
...@@ -2,11 +2,11 @@ ErrorCrit_KGE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T ...@@ -2,11 +2,11 @@ ErrorCrit_KGE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T
##Arguments_check________________________________ ##Arguments_check________________________________
if (inherits(InputsCrit, "InputsCrit") == FALSE) { if (!inherits(InputsCrit, "InputsCrit")) {
stop("InputsCrit must be of class 'InputsCrit' \n") stop("InputsCrit must be of class 'InputsCrit' \n")
return(NULL) return(NULL)
} }
if (inherits(OutputsModel, "OutputsModel") == FALSE) { if (!inherits(OutputsModel, "OutputsModel")) {
stop("OutputsModel must be of class 'OutputsModel' \n") stop("OutputsModel must be of class 'OutputsModel' \n")
return(NULL) return(NULL)
} }
......
...@@ -2,11 +2,11 @@ ErrorCrit_KGE2 <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = ...@@ -2,11 +2,11 @@ ErrorCrit_KGE2 <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose =
##Arguments_check________________________________ ##Arguments_check________________________________
if (inherits(InputsCrit, "InputsCrit") == FALSE) { if (!inherits(InputsCrit, "InputsCrit")) {
stop("InputsCrit must be of class 'InputsCrit' \n") stop("InputsCrit must be of class 'InputsCrit' \n")
return(NULL) return(NULL)
} }
if (inherits(OutputsModel, "OutputsModel") == FALSE) { if (!inherits(OutputsModel, "OutputsModel")) {
stop("OutputsModel must be of class 'OutputsModel' \n") stop("OutputsModel must be of class 'OutputsModel' \n")
return(NULL) return(NULL)
} }
......
...@@ -2,11 +2,11 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T ...@@ -2,11 +2,11 @@ ErrorCrit_NSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = T
##Arguments_check________________________________ ##Arguments_check________________________________
if (inherits(InputsCrit, "InputsCrit") == FALSE) { if (!inherits(InputsCrit, "InputsCrit")) {
stop("InputsCrit must be of class 'InputsCrit' \n") stop("InputsCrit must be of class 'InputsCrit' \n")
return(NULL) return(NULL)
} }
if (inherits(OutputsModel, "OutputsModel") == FALSE) { if (!inherits(OutputsModel, "OutputsModel")) {
stop("OutputsModel must be of class 'OutputsModel' \n") stop("OutputsModel must be of class 'OutputsModel' \n")
return(NULL) return(NULL)
} }
......
...@@ -2,11 +2,11 @@ ErrorCrit_RMSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose = ...@@ -2,11 +2,11 @@ ErrorCrit_RMSE <- function(InputsCrit, OutputsModel, warnings = TRUE, verbose =
##Arguments_check________________________________ ##Arguments_check________________________________
if (inherits(InputsCrit, "InputsCrit") == FALSE) { if (!inherits(InputsCrit, "InputsCrit")) {
stop("InputsCrit must be of class 'InputsCrit' \n") stop("InputsCrit must be of class 'InputsCrit' \n")
return(NULL) return(NULL)
} }
if (inherits(OutputsModel, "OutputsModel") == FALSE) { if (!inherits(OutputsModel, "OutputsModel")) {
stop("OutputsModel must be of class 'OutputsModel' \n") stop("OutputsModel must be of class 'OutputsModel' \n")
return(NULL) return(NULL)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment