Interactive data tables for R, based on the React Table library and made with reactR.
You can install reactable from CRAN with:
install.packages("reactable")
Or install the development version from GitHub with:
# install.packages("devtools")
::install_github("glin/reactable") devtools
To create a table, use reactable()
on a data frame or
matrix:
library(reactable)
reactable(iris)
You can embed tables in R Markdown documents:
```{r}
library(reactable)
reactable(iris)
```
Or use them in Shiny applications:
library(shiny)
library(reactable)
<- fluidPage(
ui reactableOutput("table")
)
<- function(input, output) {
server $table <- renderReactable({
outputreactable(iris)
})
}
shinyApp(ui, server)
To learn more about using reactable, check out the examples below.
IE / Edge |
Firefox |
Chrome |
Safari |
Opera |
---|---|---|---|---|
IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
MIT