Skip to content

Commit

Permalink
Make sure as.character is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic-Chr committed Nov 20, 2024
1 parent b9a9151 commit ff4093c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/percent.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff4093c

Please sign in to comment.