R/pillar.R

Defines functions obj_sum.phone pillar_shaft.phone type_sum.phone

# Dynamically exported, see zzz.R
type_sum.phone <- function(x) "phone"

# Dynamically exported, see zzz.R
pillar_shaft.phone <- function(x, ...) {
  out <- format(x)
  out[is.na(x)] <- NA
  
  valid <- is_valid(x)
  
  out[!valid] <- pillar::style_neg(out[!valid])
  pillar::new_pillar_shaft_simple(out, align = "right")
}

# Dynamically exported, see zzz.R
obj_sum.phone <- function(x) {
  paste0("phone [", length(x), "]")
}

Try the dialr package in your browser

Any scripts or data that you put into this service are public.

dialr documentation built on Oct. 17, 2023, 1:11 a.m.