Skip to content

Commit

Permalink
improve how we print dimensions when using pretty dim - e.g., if you …
Browse files Browse the repository at this point in the history
…already pass it a dimension.
  • Loading branch information
njtierney committed Jan 10, 2025
1 parent c41858c commit 69d82f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,13 @@ outside_version_range <- function(provided, range) {
outside_range
}

pretty_dim <- function(x) paste0(dim(x), collapse = "x")
pretty_dim <- function(x){
x_dim <- dim(x)
print_dim_x <- x_dim %||% x

prettied_dim <- paste0(print_dim_x, collapse = "x")
prettied_dim
}

are_initials <- function(x){
vapply(
Expand Down

0 comments on commit 69d82f1

Please sign in to comment.