From fa9f0141a923277fe449e170433d15cb9be4150e Mon Sep 17 00:00:00 2001 From: yun Date: Mon, 22 Jul 2024 21:15:59 +0800 Subject: [PATCH] better message --- R/htanno-reorder.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/htanno-reorder.R b/R/htanno-reorder.R index d2dd3868..b9b784be 100644 --- a/R/htanno-reorder.R +++ b/R/htanno-reorder.R @@ -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"))