When using shiny::renderDataTable and shiny::dataTableOutput sorting of numeric attributes is incorrect (e.g. 10, 11, 2, 21). RStudio has a package DT that corrects this, but something about switching to DT::dataTableOutput and DT::renderDataTable prevents any reactive content from working.
Minimal examples with the DT package functions work properly.
Fixed the sorting issues with the shiny functions by putting the attribute values directly into a data.frame, rather than a matrix first, therefore preserving the numeric attributes.
When using
shiny::renderDataTable
andshiny::dataTableOutput
sorting of numeric attributes is incorrect (e.g. 10, 11, 2, 21). RStudio has a package DT that corrects this, but something about switching toDT::dataTableOutput
andDT::renderDataTable
prevents any reactive content from working.Minimal examples with the DT package functions work properly.