What is the easiest way to change the font color of a single row dataframe with tableOutput. Specifically, how to change the "7" under "Right" to green.
I posted this in SO and it was suggested I use DT. However, my table is quite small, 4 items, 2 rows. I tried DT and it brought up many elements that I do not want including:
Show entries <10>;, Search box, Small up/down arrows next to column names, Row name, "Showing 1 to 1 of 1 entries" and Previous/Next with button?
Is there a simpler way to just change the color of the text in one cell in a DT. If not, is it possible to remove all of these unwanted features of DT?
library(shiny)
shinyApp(
ui = fluidPage(
sidebarLayout(
sidebarPanel(
fluidRow(
tableOutput("view")
)
),
mainPanel(
))),
server = function(input, output, session){
correct <- reactiveValues(num = 7)
wrong <- reactiveValues(num = 4)
skipped <- reactiveValues(num = 9)
togo = 80
output$view <- renderTable(tibble(
Right = correct$num,
Wrong = wrong$num,
Skipped = skipped$num,
ToGo = togo
), spacing = "xs")
}
)