Learn R Programming

reactable

Interactive data tables for R, based on the React Table library and made with reactR.

Features

  • Sorting, filtering, pagination
  • Grouping and aggregation
  • Built-in column formatting
  • Custom rendering via R or JavaScript — use Shiny HTML tags and HTML widgets in tables
  • Expandable rows and nested tables
  • Conditional styling
  • Works seamlessly within R Markdown documents and Shiny apps

Demos

Installation

You can install reactable from CRAN with:

install.packages("reactable")

Or install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("glin/reactable")

Usage

To create a table, use reactable() on a data frame or matrix:

library(reactable)

reactable(iris)

You can embed tables in R Markdown or Quarto documents:

```{r}
library(reactable)

reactable(iris)
```

Or use them in Shiny applications:

library(shiny)
library(reactable)

ui <- fluidPage(
  reactableOutput("table")
)

server <- function(input, output) {
  output$table <- renderReactable({
    reactable(iris)
  })
}

shinyApp(ui, server)

To learn more about using reactable, check out the examples below.

Examples

Browser Support

IE / EdgeFirefoxChromeSafariOpera
IE 11*, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

* Support for Internet Explorer 11 was deprecated in reactable v0.4.0.

License

MIT

Copy Link

Version

Install

install.packages('reactable')

Monthly Downloads

232,291

Version

0.4.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Lin

Last Published

March 12th, 2023

Functions in reactable (0.4.4)

as.tags.reactable

Convert a reactable widget to HTML tags
colDef

Column definitions
reactable

Create an interactive data table
reactableLang

Language options
reexports

Objects exported from other packages
updateReactable

Update a reactable instance
reactableTheme

Theme options
widget_html.reactable

Called by HTMLWidgets to produce the widget's root element
getReactableState

Get the state of a reactable instance
colFormat

Column formatting options
colGroup

Column group definitions
knit_print.reactable

Print a reactable widget for knitr
reactable-package

reactable: Interactive Data Tables for R
reactable-shiny

Shiny bindings for reactable