Interactive Data Tables for R

Interactive data tables for R, based on the 'React Table' JavaScript library. Provides an HTML widget that can be used in 'R Markdown' or 'Quarto' documents, 'Shiny' applications, or viewed from an R console.


reactable

CRAN Status Build Status codecov lifecycle

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)

reactable example using the iris dataset

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 / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE 11*, Edge last 2 versions last 2 versions last 2 versions last 2 versions

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

License

MIT

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("reactable")

0.4.5 by Greg Lin, 10 months ago


https://glin.github.io/reactable/, https://github.com/glin/reactable


Report a bug at https://github.com/glin/reactable/issues


Browse source code at https://github.com/cran/reactable


Authors: Greg Lin [aut, cre] , Tanner Linsley [ctb, cph] (React Table library) , Emotion team and other contributors [ctb, cph] (Emotion library) , Kent Russell [ctb, cph] (reactR package) , Ramnath Vaidyanathan [ctb, cph] (htmlwidgets package) , Joe Cheng [ctb, cph] (htmlwidgets package) , JJ Allaire [ctb, cph] (htmlwidgets package) , Yihui Xie [ctb, cph] (htmlwidgets package) , Kenton Russell [ctb, cph] (htmlwidgets package) , Facebook , Inc. and its affiliates [ctb, cph] (React library) , FormatJS [ctb, cph] (FormatJS libraries) , Feross Aboukhadijeh , and other contributors [ctb, cph] (buffer library) , Roman Shtylman [ctb, cph] (process library) , James Halliday [ctb, cph] (stream-browserify library) , Posit Software , PBC [fnd, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports digest, htmltools, htmlwidgets, jsonlite, reactR

Suggests covr, crosstalk, dplyr, fontawesome, knitr, leaflet, MASS, rmarkdown, shiny, sparkline, testthat, tippy, V8


Imported by AbSolution, CepalStatR, MLmorph, PKbioanalysis, ShinyBlock, actfts, activAnalyzer, agcounts, connectwidgets, daiquiri, datacutr, datamods, dlookr, dqcheckrGUI, exmort, felp, forestly, gt, istat, kesernetwork, mantis, metalite.sl, metalite.table1, modeltime, movedesign, packagefinder, periscope2, pioneeR, qrlabelr, reactable.extras, shinyGovstyle, shinydataviewer, shinyfilter, shinymgr, shinyquiz, tablet.

Depended on by ClassificationEnsembles, LogisticEnsembles, NumericEnsembles.

Suggested by ABCDscores, AssociationExplorer2, BayesianMCPMod, CohortCharacteristics, OmopSketch, OmopViewer, PhenotypeR, Rbearcat, SSVS, STATcubeR, SelfControlledCohort, VIM, aNCA, admiral, admiralneuro, bscui, citcdf, cleanepi, dm, findSVI, finnts, galah, ggpop, inlpubs, latex2exp, metalite.ae, myIO, nhanesdata, pharmaversesdtm, planr, prolific.api, quartabs, readmit, rtemis, smdi, text, visOmopResults.


See at CRAN