It would be great if the function gt::data_color() would support columns of class logical by default (without having to convert them to another class).
library(gt)
data.frame(l = c(TRUE, FALSE, TRUE)) |>
gt() |>
data_color()
#> Error in data_color(gt(data.frame(l = c(TRUE, FALSE, TRUE)))): object 'color_fn' not found
Created on 2026-03-11 with reprex v2.1.1
It would be great if the function
gt::data_color()would support columns of classlogicalby default (without having to convert them to another class).Created on 2026-03-11 with reprex v2.1.1