R DT

DT is an enhancement upon Shiny's data table widget.


Installation

Install the DT package.

install.packages('DT')


Usage

library(shiny)
library(DT)
shinyApp(
  ui = fluidPage(DTOutput('tbl')),
  server = function(input, output) {
    output$tbl = renderDT(
      iris, options = list(lengthChange = FALSE)
    )
  }
)

DT shadows the base Shiny functions dataTableOutput and renderDataTable, but it is recommended to call DTOutput and renderDT directly anyway.


CategoryRicottone

R/Dt (last edited 2026-09-03 14:01:54 by DominicRicottone)