This function is called directly, using the same id as its UI counterpart,
and wraps its logic in moduleServer() (see example).
Usage
simpletable(
id,
downloadMatrix = NULL,
displayMatrix,
pageLength = 15,
filename,
rownames = FALSE,
show_controls = TRUE,
filter = "none",
server = TRUE
)Arguments
- id
Module namespace
- downloadMatrix
Reactive expression for retrieving the plot to supply for download (default: NULL, in which case
displayMatrix()will be used)- displayMatrix
Reactive expression for retrieving the plot for display
- pageLength
Number of items per page
- filename
A string to use in the name of the table download
- rownames
Passed to
renderDataTable. Display the row names of the input matrix? (default: FALSE)- show_controls
Show search box, controls etc on resulting data table? (default: TRUE)
- filter
Passed to
DT::renderDataTable()- server
Passed to
DT::renderDataTable(). Leave at the default (TRUE) for most tables, since it keeps only the current page's data in the browser. Set to FALSE ifdisplayMatrix()can produce a table with the same dimensions but different column *names* from one render to the next (e.g. column headers derived from a recalculated statistic) - DT's server-side mode matches an in-flight page/sort/search request to fresh data by column name, so a name change between the request and the response raises "the column name ... is not found in data".
