im trying to render a gt table into word file using quarto. but the result does not appear as a table. is there any way to fix this? below is my code and screenshot of word output
tbl_smry <- function(factor_ = 'manufacturer'){
mpg %>%
rename(factor = factor_) %>%
group_by(year, factor) %>%
count() %>%
ungroup() %>%
gt()
}
for (x in c('manufacturer', 'model')) {
tbl_smry(factor_ = x) %>%
print()
}