From 881431bd2b55a4ae387cf7d7ee10833acdc714c5 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 4 Jan 2024 10:17:49 +0000 Subject: [PATCH] revert c() inside as.IDate --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))