Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ S3method(format,tab_list)
S3method(knit_print,tab_list)
S3method(knit_print,tab_tibble)
S3method(print,tab_list)
S3method(vctrs::vec_ptype_abbr,tab_list)
export(knit_print)
export(new_tab_list)
export(new_tab_tibble)
Expand Down
3 changes: 2 additions & 1 deletion R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ new_tab_list <- function(x) {
vctrs::new_vctr(x, class = "tab_list")
}

#' @exportS3Method vctrs::vec_ptype_abbr
vec_ptype_abbr.tab_list <- function(x, ...) {
"tablist"
"tab_list"
}

#' @export
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-knit_print.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test_that("knit_print.tab_tibble (and implicitly knit_print.tab_list and print_t
) |>
new_tab_tibble()
expect_output(
knit_print(d_tab),
suppressWarnings(knit_print(d_tab)),
regexp = "Cars with 8 cylinders"
)
expect_output(
Expand Down
Loading