I am executing a very minimal renderDataTable example posted on the DT github page below
http://rstudio.github.io/DT/shiny.html
library(shiny)
shinyApp(
ui = fluidPage(DT::dataTableOutput('tbl')),
server = function(input, output) {
output$tbl = DT::renderDataTable(
iris, options = list(lengthChange = FALSE)
)
}
)
However, the output I am seeing after executing this code is garbage, column names listed in a single line without space.
I tried this after uninstalling my DT packages and reinstalling again
devtools::install_github('rstudio/DT')
Nothing changed, still the same results. I don't understand why DT::renderDataTable() is not working. Any suggestions is greatly appreciated.?
-------------Update----------------
I started noticing this issue after I started building some shinyapps using Flexdashboard. Before installing Flexdashboard package everything was working as usual and there was no problem, after installing Flexdashboard i noticed this issue with datatables while using renderDataTable function

htmlwidgetsis up to date? - alistairedatatableon the output, you need it to be:output$tbl = DT::renderDataTable( {datatable(iris)}, options = list(lengthChange = FALSE) )- Shape