DT v0.15


Monthly downloads



A Wrapper of the JavaScript Library 'DataTables'

Data objects in R can be rendered as HTML tables using the JavaScript library 'DataTables' (typically via R Markdown or Shiny). The 'DataTables' library has been included in this R package. The package name 'DT' is an abbreviation of 'DataTables'.


An R interface to the DataTables library

Build Status Coverage status Downloads from the RStudio CRAN mirror

This package provides a function datatable() to display R data via the DataTables library (N.B. not to be confused with the data.table package).


You may install the stable version from CRAN, or the development version using remotes:

# install from CRAN

# or the development version if necessary

# then try DT::datatable(iris) as a hello world example

See the full documentation at https://rstudio.github.io/DT/. Please use Github issues only if you want to file bug reports or feature requests, and you are expected to ask questions on StackOverflow with at least the tags r and dt.

Functions in DT

Name Description
replaceData Replace data in an existing table
dataTableAjax Register a data object in a shiny session for DataTables
editData Edit a data object using the information from the editor in a DataTable
styleInterval Conditional CSS styles
coerceValue Coerce a character string to the same type as a target value
datatable Create an HTML table widget using the DataTables library
formatCurrency Format table columns
tableHeader Generate a table header or footer from column names
dataTableProxy Manipulate an existing DataTables instance in a Shiny app
DT-imports Objects imported from other packages
dataTableOutput Helper functions for using DT in Shiny
No Results!

Vignettes of DT

No Results!

Last month downloads


Type Package
URL https://github.com/rstudio/DT
BugReports https://github.com/rstudio/DT/issues
License GPL-3 | file LICENSE
VignetteBuilder knitr
RoxygenNote 7.1.1
Encoding UTF-8
NeedsCompilation no
Packaged 2020-08-05 02:57:58 UTC; yihui
Repository CRAN
Date/Publication 2020-08-05 15:42:07 UTC

Include our badge in your README