# Default method: show the type with angle brackets
format_type_sum(1, NULL)
pillar(1)
# AsIs method: show the type without angle brackets
type_sum.accel <- function(x) {
I("kg m/s^2")
}
accel <- structure(9.81, class = "accel")
pillar(accel)
Run the code above in your browser using DataLab