Skip to content

Commit

Permalink
Add new message about time
Browse files Browse the repository at this point in the history
See this discussion: #298
  • Loading branch information
ericward-noaa authored Feb 14, 2024
1 parent 74c0d58 commit 56d9ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/fit.R
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ 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")
}
if (is.null(time)) {
time <- "_sdmTMB_time"
Expand Down

0 comments on commit 56d9ea8

Please sign in to comment.