R/rowid-title.R
raw| 1 | rif_title <- function(has_title, ...) { |
| 2 | ret <- structure( |
| 3 | list( |
| 4 | has_title = has_title |
| 5 | ), |
| 6 | class = "pillar_rif_title" |
| 7 | ) |
| 8 | |
| 9 | ret <- set_width(ret, 0L) |
| 10 | ret |
| 11 | } |
| 12 | |
| 13 | #' @export |
| 14 | format.pillar_rif_title <- function(x, width, ...) { |
| 15 | if (!x$has_title) { |
| 16 | character() |
| 17 | } else { |
| 18 | "" |
| 19 | } |
| 20 | } |