Use this tag for questions related to the reactable package. The reactable package provides functions to create interactive data tables in the R programming language, based on the React Table library and made with reactR.
Questions tagged [reactable]
180 questions
0
votes
0 answers
Add a subheader to a "reactable" table in R Shiny
I'd like to create a "reactable" table in R Shiny.
But I need it to have a breakdown of three subheaders under all the headers.
The three subheaders point towards figures that are derived from a separate table. Q1 is "Period 1" which can be toggled…

Leonhard Euler
- 231
- 1
- 7
0
votes
1 answer
How to link two modules in shiny app (one using reactable and the other leaflet)?
I have an app that renders some data using reactable and shows the same data in a map (using leaflet).
the table object is selectable and the selected rows are shown in the map.
when I clear the selection in the table (with an actionButton), I want…

António
- 43
- 6
0
votes
0 answers
reactable nested table is not displayed
I am building a R shiny app and wish to include a reactable with a nested table inside.
My current issue is that the nested table subset_df is not being displayed.
Here is the code:
p<-reactable( df2,
defaultSorted = "Question…

Maad scientist
- 76
- 1
- 8
0
votes
0 answers
Turn off Reactable's fade effect on table
I've got a table in R Studio using Reactable to format it. When my cursor isn't resting on the table, it has a faded out effect. How do I remove this effect so I get the sharper colours without hovering?
Orange boxes on the below screenshots are to…

TerrifiedJelly
- 135
- 10
0
votes
1 answer
Shiny reactable list object in tags$button on click
So I have a situation where I would like to use an object in a tag$button(). This is to work around the fact that the columns may change.
It works on the first click and then stops working and the whole table disappears on subsequent…

A-A-ron
- 15
- 6
0
votes
1 answer
Conditionally adjust padding in reactable
I would like to adjust the left padding of specific cells in a column in a reactable. I can get it to work for color (based on this answer), but not the padding. Any ideas?
MWE
library(reactable)
library(dplyr)
df <- iris |>
group_by(Species) |>…

Julian
- 6,586
- 2
- 9
- 33
0
votes
1 answer
In R reactable package how to color cell with lag values being greater than actual value?
This is my code:
library(tidyverse)
library(reactable)
reactable(
iris,
columns = set_names(x = colnames(iris)) %>%
map(~ {
colDef(
style = function(value) {
ds_color <-…

Laura
- 675
- 10
- 32
0
votes
1 answer
Order rows in reactablefmtr non alphabetically
I'm using reactable to create a table but I want my rows to be in order of the dataframe as read in, not alphabetically. Please advise.
reactable(data)
data <- data.frame (Indicator = c("Water Quality", "Benthic Macroinvertebrates","Vegetation"),
…

Kerry Kuntz
- 1
- 1
0
votes
0 answers
Problem with positioning of c3 gauge in reactable when resizing window
This is my first question on SO so please advise if more information is needed.
I am trying to render a gauge in each row of a reactable that represents the progress of each Program. Each Program has a different goal, which would be used to set the…

B Mull
- 1
- 1
0
votes
0 answers
Shiny R DT table nesting rows with conditional fitlter function
I would like to create a table with hidden nesting rows that can be expanded based on a given column(s) that also works with the conditional filter system of DT shiny.
I would like the nesting to look like the reactable package grouping/aggregation…

A-A-ron
- 15
- 6
0
votes
1 answer
Create unique aria labels for buttons in reactable
I am using reactable to create interactive tables in an HTML document in R Markdown. In order to make my tables better compliant with WCAG standards, I need to assign unique aria labels to buttons embedded in the tables, so that screen readers can…

mojave-meow
- 1
- 1
0
votes
1 answer
How to hide radio buttons in reactable in shiny
How can I remove the column of radio buttons from a reactable table in my Shiny app, but keeping the selection = "single" argument?
My reprex is based on this solution to hiding the all/none checkbox with selection = "multiple", I was hoping that I…

tauft
- 546
- 4
- 13
0
votes
1 answer
How do I set the domain of a color scale using reactable/reactablefmtr?
Consider the following table using the reactable and reactablefmtr packages:
library(reactable)
library(reactablefmtr)
my_color_pal <- c("white", "red")
df <- head(mtcars[,"mpg", drop = FALSE])
reactable(
df,
columns = list(
mpg =…

David Ranzolin
- 913
- 1
- 6
- 18
0
votes
0 answers
Using {cropcircle} images in a reactable?
I'm trying to add web images cropped using {cropcircle} to a reactable table. I've found the method for adding images straight from the web, and an example to graph the edited images with ggplot, but nothing for embedding them in a table. Any help…

thoel
- 1
- 1
0
votes
1 answer
reactable - expand row for parent 2 levels up, without expanding for the immediate parent
I want to optionally expand my third column (here, "time") to get aggregate measures (summed over colB values) of some value over time for colA, but still have the option to further expand on colB. So far whatever I try I must expand all preceding…

bikeactuary
- 447
- 4
- 18