Questions tagged [reactable]

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.

180 questions
6
votes
1 answer

How can I filter pre-aggregated data in Rmarkdown without Shiny?

Original Question (See update with partial solution below.) I have an RMarkdown document which summarizes how many records (rows) have various attributes by group. I would like to be able to manipulate which records are included in the table by…
Rob Creel
  • 563
  • 2
  • 13
5
votes
1 answer

Ampersand (&) in a string becomes "&" in crosstalk filter_select() function

I am using NFL Stadium names in a crosstalk filter_select() function for my r shiny app using a reactable table. However, when I go to select "M&T Bank Stadium", it displays as "M&[amp;]T Bank Stadium" (I have added the brackets so you see what it…
5
votes
1 answer

Use image in reactable expandable row

Given a data frame with a column of links to images (), is it possible to use reactable's expandable row feature to expand a row and view an image? Here is some basic data: library(tidyverse) library(reachable) img_df <-…
acircleda
  • 673
  • 4
  • 13
5
votes
1 answer

Conditional Formatting with Reactable and Blogdown

Using R's Reactable package and RMarkdown I want to create a table where a column has a green square for Status <= 2 and a red square otherwise. If I try to format the Status column based on it's value, it creates a non-colored square. See…
ixodid
  • 2,180
  • 1
  • 19
  • 46
5
votes
1 answer

How to filter rows in both parent and nested tables, using reactable?

How to filter rows with a specific Type, which are either in the parent or in any of the nested tables of a reactable, using crosstalk::filter_checkbox, as shown here ? dat <- structure(list(Manufacturer = c( "Acura", "Acura", "Audi", "Audi", …
gd047
  • 29,749
  • 18
  • 107
  • 146
4
votes
0 answers

update reactable table without closing nests shiny r

I have a nested reactable table in a shiny app. The table shows summaries for groups, then I want to expand the groups to show individuals. The data related to the individuals will change with user input, so I want to: update the data without…
Jake L
  • 987
  • 9
  • 21
4
votes
2 answers

reactable in R markdown `asis` chunk with loop not displayed

I want to create dynamic sections in my R markdown document. For this, I use R chunks with the asis output type. The chunks contain tables created by the reactable package. I cannot get the tables to print when I create them in a for-loop. I know…
AEF
  • 5,408
  • 1
  • 16
  • 30
4
votes
1 answer

How I can center the header columns on reactable (r-package)?

Hi and thanks for reading me I am working on some tables with the "reactable" package in r, but I would like to center only the headings of each column. For example: library(reactable) reactable(iris, defaultColDef = colDef( …
4
votes
1 answer

Reactable: Conditional styling in groups

I'm trying to combine the following two reactable features in R: Conditional styling Aggregating / grouping My goal is to highlight the aggregated (sum) group headers with different shades of orange, depending on the group sum value. This way,…
fbardos
  • 480
  • 1
  • 6
  • 15
4
votes
1 answer

R reactable _ how to truncate cell content and display upon hovering?

I have some long text in a table that I display as a reactable. I would like the long text to be truncated, and only appear when hovering on top of it. So far, I have managed to truncate the text in the cells, but I cannot make the hovering to work.…
Helene
  • 91
  • 4
4
votes
0 answers

How do I get reactable table columns to auto expand?

I'm using a table with the package reactable and I'd like the columns to auto expand. Right now, the rows will get bigger when the text is too big for the column. I want to switch that logic, so the columns will get bigger…
Cauder
  • 2,157
  • 4
  • 30
  • 69
3
votes
1 answer

Interactively select which columns are displayed

I am using reactable to generate a table in a quarto document. There are a bit too many columns. So I am thinking of displaying a few by default and then allow the user to change that if needed. I am looking for ideas on how to allow the user to…
mindlessgreen
  • 11,059
  • 16
  • 68
  • 113
3
votes
0 answers

r reactable output as html and png created paragraph break symbol which was unseen in r markdown preview

This is the first time I tried reactable and raising questions in stack overflow. I apologise in advance if anything is unclear. I was working on a simple reactable, and while the preview in RStudio looks fine, when I tried to save it as png and…
Wai
  • 31
  • 1
3
votes
1 answer

Leaflet map inside reactable table R Shiny

I would like to include maps in one of the columns of a reactable table, each map would be occupy a cell inside the table. Something like this: I've tried this: library(shiny) library(reactable) library(leaflet) ui <- fluidPage( mainPanel( …
CodingBiology
  • 262
  • 4
  • 13
3
votes
1 answer

Cannot completely remove reactable column with CSS class

I've created a table using reactable with Quarto Markdown in RStudio and I'm attempting to use a CSS class to remove one column (Twitter) when the screen width is 700px or less (mobile devices). I'm using "visibility: hidden" in my CSS to remove the…
Beatdown
  • 187
  • 2
  • 7
  • 20
1
2 3
11 12