From e4cc158ab406f2889a13aabd3367147b9ad59e34 Mon Sep 17 00:00:00 2001 From: chainsawriot Date: Tue, 11 Jun 2024 17:09:52 +0200 Subject: [PATCH] Use minty instead #164 --- DESCRIPTION | 2 +- R/coersion-tk_tbl.R | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index e5b2f8fb..9fd42c0c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -29,7 +29,7 @@ Imports: lubridate (>= 1.6.0), padr (>= 0.5.2), purrr (>= 0.2.2), - readr (>= 1.3.0), + minty, stringi (>= 1.4.6), tibble (>= 3.0.3), tidyr (>= 1.1.0), diff --git a/R/coersion-tk_tbl.R b/R/coersion-tk_tbl.R index 95f47386..446100ae 100644 --- a/R/coersion-tk_tbl.R +++ b/R/coersion-tk_tbl.R @@ -106,7 +106,7 @@ tk_tbl.data.frame <- function(data, preserve_index = TRUE, rename_index = "index tibble::as_tibble(...) if (any(vapply(ret, is.character, logical(1)))) { - ret <- suppressMessages(readr::type_convert(ret)) + ret <- minty::type_convert(ret) } } else { @@ -164,7 +164,7 @@ tk_tbl.zoo <- function(data, preserve_index = TRUE, rename_index = "index", time if (!is.null(rename_index)) colnames(ret)[[1]] <- rename_index if (any(vapply(ret, is.character, logical(1)))) { - ret <- suppressMessages(readr::type_convert(ret)) + ret <- minty::type_convert(ret) } } else {