I'm building a sample Shiny dashboard in the R Studio console. I have some tables:
output$summary_table <- DT::renderDataTable(DT::datatable({
# some code here
})
When this table gets displayed it has things like pagination and a search box. I would like to remove those but the documentation (https://datatables.net/reference/option/) seems to all be based on editing JS/html e.g.
$('#example').dataTable( {
"paging": false
} );
Is there a way to do this within DT::datatable({})
instead? I would not know how to integrate this with my R code as is? Or is it simple and I'm just not getting the intended use?
I would like to remove pagination and search box.