From ff079a2e6141fc780e0e36964b54fb42d52941ff Mon Sep 17 00:00:00 2001 From: schochastics Date: Wed, 30 Oct 2024 09:57:02 +0100 Subject: [PATCH] added methods to import --- DESCRIPTION | 1 + R/utils.R | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index a9755ca..ebda399 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,6 +21,7 @@ Imports: dplyr, httr, jsonlite, + methods, tibble Suggests: knitr, diff --git a/R/utils.R b/R/utils.R index dabb06d..54aa2d0 100644 --- a/R/utils.R +++ b/R/utils.R @@ -239,7 +239,7 @@ rtoot_ask <- function(prompt = "enter authorization code: ", pass = TRUE, check_ handle_id <- function(x) { ## Convert x to snowflake id if it is POSIXct - if (is(x, "POSIXct")) { + if (methods::is(x, "POSIXct")) { return(as.numeric(x) * (2^16) * 1000) } x