@@ -143,16 +143,26 @@ format_covariate_header <- function(separator_row, printed_colnames, covariate_n
143143
144144}
145145
146- # ' Custom header for SE_print_abstraction tibbles
146+ # ' Custom header for SE_print_abstraction
147147# '
148- # ' Draws a banner aligned to the first rendered body line, and prints a
149- # ' one-line summary with feature/sample/assay counts.
148+ # ' Formats the header using pillar’s formatting context so it aligns with
149+ # ' the tibble body and adds a centered COVARIATES banner.
150+ # '
151+ # ' @param x An object of class `SE_print_abstraction`.
152+ # ' @param setup A pillar formatting setup (list) passed by pillar; contains
153+ # ' things like the rendering `width` and the pre-rendered first body line
154+ # ' (`setup$body`).
155+ # ' @param ... Unused; present for S3 method consistency.
150156# '
151157# ' @importFrom pillar tbl_format_header align style_subtle
152158# ' @importFrom cli col_br_blue col_br_black
153159# ' @importFrom stringr str_locate_all
154160# ' @importFrom rlang names2
155161# ' @importFrom magrittr %>%
162+ # '
163+ # ' @name tbl_format_header.SE_print_abstraction
164+ # ' @aliases tbl_format_header.SE_print_abstraction
165+ # ' @method tbl_format_header SE_print_abstraction
156166# ' @export
157167tbl_format_header.SE_print_abstraction <- function (x , setup , ... ) {
158168
@@ -163,8 +173,6 @@ tbl_format_header.SE_print_abstraction <- function(x, setup, ...) {
163173 separator_row <- x | > attr(" separator_row" )
164174 covariate_names <- x | > attr(" covariate_names" )
165175
166- x <<- x
167-
168176
169177 number_of_total_rows = (x | > attr(" number_of_features" )) * (x | > attr(" number_of_samples" ))
170178
0 commit comments