if (FALSE) { # rlang::is_installed("palmerpenguins") && requireNamespace("tibble")
# Simple column
ctl_new_pillar_list(
tibble::tibble(),
palmerpenguins::penguins$weight[1:3],
width = 10
)
# Packed data frame: unknown width
ctl_new_pillar_list(
tibble::tibble(),
palmerpenguins::penguins[1:3, ],
width = NULL
)
# Packed data frame: known width
ctl_new_pillar_list(
tibble::tibble(),
palmerpenguins::penguins,
width = 60
)
# Deeply packed data frame with known width:
# showing only the first sub-column even if the width is sufficient
ctl_new_pillar_list(
tibble::tibble(),
tibble::tibble(x = tibble::tibble(b = 1, c = 2), y = 3),
width = 60
)
# Packed matrix: unknown width
ctl_new_pillar_list(tibble::tibble(), matrix(1:6, ncol = 2), width = NULL)
# Packed matrix: known width
ctl_new_pillar_list(tibble::tibble(), matrix(1:6, ncol = 2), width = 60)
# Packed array
ctl_new_pillar_list(tibble::tibble(), Titanic, width = 60)
}
Run the code above in your browser using DataLab