You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something we briefly discussed in the zoom call; but wanted to give info. When using Kable in Quarto (version that ships with RStudio 2022.07.1 Build 554), wide tables are resized to fit automatically (by wrapping long column names). In GT the right most part of the table is cut off. I used mtcars as an example. (knitr 1.40)
I'm including both screenshots and the code form quarto doc.
Screenshots of results:
GT PDF
Kable PDF
GT rendered to html: table does make the columns fit, like kable does for PDF:
Any thoughts on this?
Quarto doc:
`---
title: "Testing PDF"
format:
pdf
editor: visual
library(tidyverse)
library(gt)
library(gtExtras)
GT
cylinders
mtcars %>%
gt() %>%
cols_label(mpg = "miles per gal",
cyl = "Number of cylinders",
disp = "Displacement (cu.in.)",
hp = "Gross horsepower"
)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is something we briefly discussed in the zoom call; but wanted to give info. When using Kable in Quarto (version that ships with RStudio 2022.07.1 Build 554), wide tables are resized to fit automatically (by wrapping long column names). In GT the right most part of the table is cut off. I used mtcars as an example. (knitr 1.40)
I'm including both screenshots and the code form quarto doc.
Screenshots of results:
GT PDF
Kable PDF
GT rendered to html: table does make the columns fit, like kable does for PDF:
Any thoughts on this?
Quarto doc:
`---
title: "Testing PDF"
format:
pdf
editor: visual
GT
cylinders
Kable
`
Beta Was this translation helpful? Give feedback.
All reactions