Skip to content

Commit bb88d85

Browse files
committed
Remove unused exports and delete obsolete test script for format_covariate_header function; update NAMESPACE accordingly.
1 parent c94cfaa commit bb88d85

File tree

4 files changed

+1
-145
lines changed

4 files changed

+1
-145
lines changed

NAMESPACE

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ S3method(ctl_new_rowid_pillar,SE_print_abstraction)
66
S3method(print,SummarizedExperiment)
77
S3method(tbl_format_header,SE_print_abstraction)
88
S3method(tbl_format_header,tidySummarizedExperiment)
9-
export(format_covariate_header)
10-
export(test_tidy_message)
119
export(demo_tidy_message)
1210
export(tidy_message)
1311
importClassesFrom(SummarizedExperiment,SummarizedExperiment)

R/tidyprint_1_utlis.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#' @importFrom purrr map2_chr
1414
#' @importFrom purrr map_int
1515
#' @importFrom dplyr if_else
16-
#' @importFrom pillar pillar___format_comment
17-
#' @importFrom pillar NBSP
1816
#' @export
1917
ctl_new_rowid_pillar.SE_print_abstraction <- function(controller, x, width, ...) {
2018
# message('attrx =', x %>% attributes())
@@ -99,7 +97,6 @@ ctl_new_pillar.SE_print_abstraction <- function(controller, x, width, ..., title
9997
#' @importFrom pillar tbl_format_header
10098
#' @importFrom cli col_br_black
10199
#' @importFrom tibble as_tibble
102-
#' @export
103100
format_covariate_header <- function(separator_row, printed_colnames, covariate_names, number_of_total_rows, label = "COVARIATES") {
104101
header_row <-
105102
map2_chr(separator_row, names(separator_row), ~ if_else(.y %in% covariate_names, .x, .x |> str_replace_all("-", " ")))

test_header_formatting.R

Lines changed: 0 additions & 139 deletions
This file was deleted.

tests/testthat/test-header-formatting.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ test_that("format_covariate_header overlays label as a continuous string", {
4949
)
5050
expect_snapshot_output(cat(result2, "\n"))
5151

52-
result3 <- format_covariate_header(
52+
result3 <- tidyprint:::format_covariate_header(
5353
separator_row = separator_row,
5454
printed_colnames = printed_colnames,
5555
covariate_names = covariate_names,

0 commit comments

Comments
 (0)