diff --git a/DESCRIPTION b/DESCRIPTION index b99430bd4..8299b5bd5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -47,4 +47,4 @@ Config/testthat/parallel: true Encoding: UTF-8 Language: en-GB Roxygen: list(markdown = TRUE) -RoxygenNote: 7.2.3 +RoxygenNote: 7.3.2 diff --git a/NAMESPACE b/NAMESPACE index 85dd9fe84..8d02a50b0 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -122,6 +122,7 @@ S3method(cnd_header,vctrs_error_subscript_type) S3method(diff,vctrs_vctr) S3method(duplicated,vctrs_sclr) S3method(duplicated,vctrs_vctr) +S3method(format,hidden) S3method(format,vctrs_bytes) S3method(format,vctrs_group_rle) S3method(format,vctrs_list_of) diff --git a/R/type-vctr.R b/R/type-vctr.R index 9770bb9d4..57c964355 100644 --- a/R/type-vctr.R +++ b/R/type-vctr.R @@ -750,6 +750,8 @@ new_hidden <- function(x = double()) { stopifnot(is.numeric(x)) new_vctr(vec_cast(x, double()), class = "hidden", inherit_base_type = FALSE) } + +#' @export format.hidden <- function(x, ...) rep("xxx", length(x)) local_hidden <- function(frame = caller_env()) { diff --git a/man/howto-faq-coercion-data-frame.Rd b/man/howto-faq-coercion-data-frame.Rd index 9e94c7d33..bea380699 100644 --- a/man/howto-faq-coercion-data-frame.Rd +++ b/man/howto-faq-coercion-data-frame.Rd @@ -153,10 +153,11 @@ With these methods vctrs is now able to combine data tables with data frames: \if{html}{\out{