From ff4093cf1b9b08739f3d740253bdf2ba95be1fdf Mon Sep 17 00:00:00 2001 From: nicolc11 Date: Wed, 20 Nov 2024 10:40:22 +0000 Subject: [PATCH] Make sure as.character is used. --- R/percent.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/percent.R b/R/percent.R index a4334a5..3b3455e 100644 --- a/R/percent.R +++ b/R/percent.R @@ -90,7 +90,7 @@ signif_half_up <- function(x, digits = 6){ #' @export as.character.percent <- function(x, digits = 2, ...){ - stringr::str_c(unclass(round(x, digits) * 100), "%") + stringr::str_c(as.character(unclass(round(x, digits) * 100), ...), "%") } #' @export