From 4a2d159575f5a4e1ebb504820f92387e863af8a9 Mon Sep 17 00:00:00 2001 From: Angelo D'Ambrosio Date: Fri, 8 Mar 2024 15:38:25 +0100 Subject: [PATCH] fix: add "integer" type among accepted time classes --- R/utils.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/utils.R b/R/utils.R index a487ea3..a8b5d7f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -85,7 +85,7 @@ parse_event_time <- function(time, format = c("R", "T")) { #' time_to_numeric <- function(time, origin = NULL) { - if (!inherits(time, c("character", "POSIXct", "numeric"))) { + if (!inherits(time, c("character", "POSIXct", "numeric", "integer"))) { stop("Invalid time format for parameter 'time'") }