Skip to content

Commit

Permalink
Remove extra ); length -> sum?
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed Feb 14, 2024
1 parent 56d9ea8 commit d1d8efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,8 @@ sdmTMB <- function(
if (!is.null(time)) {
assert_that(time %in% names(data),
msg = "Specified `time` column is missing from `data`.")
assert_that(length(is.na(as.numeric(data[[time]]))) == 0), msg = "Specified `time` column can't be coerced to a numeric value")
assert_that(sum(is.na(as.numeric(data[[time]]))) == 0L,
msg = "Specified `time` column can't be coerced to a numeric value")
}
if (is.null(time)) {
time <- "_sdmTMB_time"
Expand Down

0 comments on commit d1d8efc

Please sign in to comment.