R/type-sum.R

Defines functions type_sum.range obj_sum.range is_vector_s3.range pillar_shaft.range

#' @export
type_sum.range <- function(x) {
  "rng"
}

#' @export
obj_sum.range <- function(x) {
  rep("rng", length(x))
}

#' @export
is_vector_s3.range <- function(x) {
  TRUE
}

#' @export
pillar_shaft.range <- function(x, ...) {
  out <- compact_range(x)
  pillar::new_pillar_shaft_simple(out, align = "right", min_width = 10)
}
earowang/hilo documentation built on May 18, 2019, 8:07 p.m.