DataTables
, in Shiny, displays missing values as blank space. Is there a way to change that? I'm dreaming especially of the gray, italicized NAs that RStudio uses in its data viewer. I'd have no problem with injecting such strings into character columns for display purposes, but, of course, sometimes the columns are numeric, or date, and converting them just for display seems problematic.
MWE of DT's default missing values display:
library(DT)
library(shiny)
ui <- fluidPage(
dataTableOutput("airquality")
)
server <- function(input, output) {
output$airquality <- renderDataTable(airquality)
}
shinyApp(ui = ui, server = server)