Skip to content

Commit

Permalink
Change clisymbols for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jun 11, 2024
1 parent 6c46e2b commit 37f5b98
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Authors@R: c(
)
Description: Provides feedback about 'dplyr' and 'tidyr' operations.
License: MIT + file LICENSE
Imports: dplyr, tidyr, glue, clisymbols, rlang (>= 0.4.3)
Imports: dplyr, tidyr, glue, rlang (>= 0.4.3)
Suggests:
testthat,
units,
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export(transmute_at)
export(transmute_if)
export(uncount)
export(ungroup)
import(clisymbols)
import(dplyr)
import(rlang)
import(tidyr)
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# tidylog (development version)

- use cli instead of clisymbols

# 1.1.0

- switch to Github Actions for CI
Expand Down
3 changes: 1 addition & 2 deletions R/tidylog.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ percent <- function(n, total) {
}
}

#' @import clisymbols
format_list <- function(items) {
if (length(items) <= 5) {
paste0(items, collapse = ", ")
} else {
paste0(c(items[1:5], clisymbols::symbol$ellipsis), collapse = ", ")
paste0(c(items[1:5], cli::symbol$ellipsis), collapse = ", ")
}
}

Expand Down

0 comments on commit 37f5b98

Please sign in to comment.