#' Standard DT Table
#'
#' @param x a data table
#'
#' @return A DT table with vertical and horizontal scrolling enabled.
#' @export
standard_dt <- function(x) {
DT::datatable(x,
options = list(
columnDefs = list(list(className = 'dt-center')),
scrollY = 300,
scroller = TRUE,
scrollX = TRUE
))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.