Skip to content

Commit e3a10c6

Browse files
committed
fix CHECK
1 parent d29d7b8 commit e3a10c6

File tree

4 files changed

+45
-6
lines changed

4 files changed

+45
-6
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Version: 1.7.2
55
Authors@R: c(person("Stefano", "Mangiola", email = "[email protected]",
66
role = c("aut", "cre")) )
77
Description: tidySingleCellExperiment is an adapter that abstracts the 'SingleCellExperiment' container
8-
in the form of tibble and allows the data manipulation, plotting and nesting using 'tidyverse'
8+
in the form of tibble and allows the data manipulation, plotting and nesting using 'tidyverse'.
99
License: GPL-3
1010
Depends:
1111
R (>= 4.0.0),
@@ -27,6 +27,7 @@ Imports:
2727
S4Vectors,
2828
tidyselect,
2929
ellipsis,
30+
vctrs,
3031
pillar,
3132
stringr,
3233
cli,

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@ importFrom(tidyr,unnest)
154154
importFrom(tidyselect,eval_select)
155155
importFrom(ttservice,join_features)
156156
importFrom(utils,tail)
157+
importFrom(vctrs,new_data_frame)

R/print_method.R

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
# This file is a replacement of the unexported functions in the tibble package, in order to specify "tibble abstraction in the header"
22

3-
#' tbl_format_header
3+
#' Format the header of a tibble
4+
#'
5+
#' @description
6+
#' `r lifecycle::badge("experimental")`
7+
#'
8+
#' For easier customization, the formatting of a tibble is split
9+
#' into three components: header, body, and footer.
10+
#' The `tbl_format_header()` method is responsible for formatting the header
11+
#' of a tibble.
12+
#'
13+
#' Override this method if you need to change the appearance
14+
#' of the entire header.
15+
#' If you only need to change or extend the components shown in the header,
16+
#' override or extend [tbl_sum()] for your class which is called by the
17+
#' default method.
418
#'
5-
#' @rdname tbl_format_header-methods
6-
#' @name tbl_format_header
719
#' @importFrom pillar tbl_format_header
20+
#' @inheritParams tbl_format_body
21+
#' @inherit tbl_format_body return
822
#'
9-
#' @noRd
23+
#' @rdname tbl_format_header-methods
24+
#' @name tbl_format_header
1025
#'
1126
#' @export
27+
#'
28+
NULL
1229
NULL
1330

1431
#' @importFrom rlang names2
@@ -113,12 +130,13 @@ NULL
113130
#' @rdname print
114131
#' @importFrom cli cat_line
115132
#' @importFrom SingleCellExperiment counts
133+
#' @importFrom vctrs new_data_frame
116134
#' @export
117135
print.SingleCellExperiment <- function(x, ..., n = NULL, width = NULL, n_extra = NULL) {
118136

119137
x |>
120138
as_tibble(n_dimensions_to_return = 5) |>
121-
vctrs::new_data_frame(class = c("tidySingleCellExperiment", "tbl")) %>%
139+
new_data_frame(class = c("tidySingleCellExperiment", "tbl")) %>%
122140
add_attr( nrow(x), "number_of_features") %>%
123141
add_attr( assays(x) %>% names , "assay_names") %>%
124142
print()

man/tbl_format_header-methods.Rd

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)