R DT

DT is a library for an enhanced version of Shiny's data table widget.


Installation

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 2024-05-03 22:33:50 by DominicRicottone)