...
Font changes to a gt table are being reflected when we run the following code
mtcars%>%
head()%>%
gt()%>%
opt_table_font(
font="Georgia"
)
However, when the same thing is run using an R shiny app, then the font are not reflected correctly
library(shiny)
library(gt)
ui <- fluidPage(
gt_output("table")
)
server = function(input, output, session) {
output$table <- gt::render_gt({
data<-mtcars%>%
head()%>%
gt()%>%
opt_table_font(
font="Georgia"
)
}
)
}
shinyApp(ui, server)