Skip to content

Commit

Permalink
Use more precise NA types.
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Dec 8, 2024
1 parent a701386 commit 8307ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/race-wrapper.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ check_output_target_evaluator <- function (output, scenario, target_runner_call
}
}
if (is.null(output$time)) {
output$time <- NA
output$time <- NA_real_
} else {
if (is_na_nowarn(output$time)) {
err_msg <- "The time returned by targetEvaluator is not numeric!"
Expand Down Expand Up @@ -248,7 +248,7 @@ check_output_target_runner <- function(output, scenario, bound = NULL)
}

if (is.null(output$time)) {
output$time <- NA
output$time <- NA_real_
} else {
if (is.na(output$time)) {
err_msg <- paste0("The time returned by targetRunner is not numeric!")
Expand Down

0 comments on commit 8307ee2

Please sign in to comment.