You can use the dom
option to determine which elements of the data table are shown. In the call to data table, you pass a named list of options to the options
argument. dom
accepts a character string where each element corresponds to one DOM element.
# only display the table, and nothing else
datatable(head(iris), options = list(dom = 't'))
# the filtering box and the table
datatable(head(iris), options = list(dom = 'ft'))
In your case, i
is the table information summary: that's the one you want to leave out. You can also use this method to remove other elements like the search box or pagination controls.
See section 4.2 on this page for how to do this in R: https://rstudio.github.io/DT/options.html
This page in the Datatables manual discusses the DOM option: https://datatables.net/reference/option/dom
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…