Skip to content

Commit

Permalink
fix pringing message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 30, 2024
1 parent bbbf0c5 commit 5bacf72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/pair-links.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ obj_print_data.ggalign_pair_links <- function(x, ...) {
obj_print_footer.ggalign_pair_links <- function(x, ...) {
NextMethod()
n <- sum(lengths(x, use.names = FALSE))
cat(sprintf("A total of %d link%s", n, if (n > 1L) "s" else ""), sep = "\n")
cat(sprintf(
"A total of %d group%s", n,
if (n > 1L) "s" else ""
), sep = "\n")
invisible(x)
}

Expand Down

0 comments on commit 5bacf72

Please sign in to comment.