Skip to content

Commit

Permalink
better message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Jul 22, 2024
1 parent 75c1f0f commit fa9f014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/htanno-reorder.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ HtannoReorder <- ggplot2::ggproto("HtannoReorder", HtannoProto,
weights <- rlang::inject(fun(data, !!!fun_params))
if (nrow(data) != length(weights)) {
cli::cli_abort(paste(
"{.arg fun} of {.fn {snake_class(self)}} must return an",
"{.arg fun} of {.fn {snake_class(self)}} must return an atomic",
sprintf(
"integer with the same length of heatmap %s axis (%d)",
"vector with the same length of heatmap %s axis (%d)",
to_matrix_axis(position), nrow(data)
)
), call = .subset2(self, "call"))
Expand Down

0 comments on commit fa9f014

Please sign in to comment.