As per the explanation in section 2.3 here, I can remove rownames for a datatable by setting rownames = FALSE
How do I suppress row names when using DT::renderDataTable
in R shiny? The following doesn't work because if you look at the dataTables options reference there is no rownames option
output$subsettingTable <- DT::renderDataTable(
subsetTable(), filter = 'top', server = FALSE,
options = list(pageLength = 5, autoWidth = TRUE, rownames= FALSE
))
My question is similar to the one here. The answers there are for renderTable
and I've tried making the answers there work with DT::renderDataTable
with zero success.