diff --git a/DESCRIPTION b/DESCRIPTION index 5410f255f..dc8ce56b9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -26,7 +26,7 @@ Imports: rlang (>= 0.3.0), utf8 (>= 1.1.0), utils, - vctrs (>= 0.2.0) + vctrs (>= 0.3.7) Suggests: bit64, debugme, diff --git a/R/type-sum.R b/R/type-sum.R index ed0fc6e47..9611af54b 100644 --- a/R/type-sum.R +++ b/R/type-sum.R @@ -83,7 +83,11 @@ obj_sum <- function(x) { #' @export obj_sum.default <- function(x) { - paste_with_space_if_needed(type_sum(x), size_sum(x)) + if (!vec_is(x)) { + type_sum(x) + } else { + paste(vec_ptype_abbr(x, suffix_shape = FALSE), size_sum(x)) + } } #' @export diff --git a/tests/testthat/_snaps/format_list.md b/tests/testthat/_snaps/format_list.md index 2d07db853..b60279738 100644 --- a/tests/testthat/_snaps/format_list.md +++ b/tests/testthat/_snaps/format_list.md @@ -27,5 +27,5 @@ Output -