Skip to content

Commit

Permalink
bug fix from prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mitokic committed Nov 23, 2021
1 parent 4c98476 commit 6ef2f73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/validate_forecasting_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ validate_forecasting_inputs<-function(input_data,
#back test scenarios formatting
if(!is.numeric(back_test_scenarios) & !is.null(back_test_scenarios)) {
stop("back test scenarios input value must be either a number greater than 0 or set to NULL")
} else if(is.null(back_test_scenarios)) {
# do nothing
} else if(back_test_scenarios < 1) {
stop("back test scenarios input value must be either a number greater than 0 or set to NULL")
}
Expand Down

0 comments on commit 6ef2f73

Please sign in to comment.