diff --git a/R/utils.R b/R/utils.R index 217c721f8..b2548478e 100644 --- a/R/utils.R +++ b/R/utils.R @@ -199,7 +199,7 @@ enw_example <- function(type = c( #' ) coerce_date <- function(dates) { if (is.null(dates)) { - return(data.table::as.IDate(c())) + return(data.table::as.IDate(numeric())) } if (length(dates) == 0) { return(data.table::as.IDate(dates))