Skip to content

wrap_table kills font and alignment applied to gt table by theme_xy() #462

Description

@paolocrosetto

Maybe this is not a bug but a feature, but applying wrap_table to a gt table unapplies some of the table's formatting.

Reproducible exemple using gtExtras themes

library(tidyverse)
library(gt)
library(gtExtras)
library(patchwork)

data <- mpg %>% 
  group_by(manufacturer) %>% 
  summarise(across(.cols = c(cty, hwy), mean)) 


themed_gt <- data %>% 
  gt() %>% 
  gt_theme_538()

## comes with theme-specific font and alignment
themed_gt

## loses the specific format/
wrap_table(themed_gt)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions