diff --git a/DESCRIPTION b/DESCRIPTION index f18d01b..7bd8955 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -27,6 +27,7 @@ Imports: ggplot2, jsonlite, lifecycle, + lubridate, readr, rlang, tidyr diff --git a/R/timestamps_to_datetime.R b/R/timestamps_to_datetime.R index 0bdb38b..c63cdb6 100644 --- a/R/timestamps_to_datetime.R +++ b/R/timestamps_to_datetime.R @@ -83,13 +83,6 @@ timestamps_to_datetime <- function(x, tz_offset = NULL, force_tz = NULL) { out <- as.POSIXct(x, origin = "1970-01-01", tz = "UTC") if (!is.null(force_tz)) { - if (!requireNamespace("lubridate", quietly = TRUE)) { #nocov start - cli_abort(c( - paste0("Package `lubridate` is needed for this function to work."), - i = paste0("Please install it using `install.packages(\"lubridate\")`")) - ) - } #nocov end - out <- lubridate::force_tz(out, tzone = force_tz) } out