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
0
votes
0 answers

How to return the filtered rows in a reactable table in a Shiny app module

I am looking for some help please to develop a solution to return the filtered rows in a reactable table in a Shiny app module. I am looking to identify which rows are the subset of mtcars after the columns have been filtered with free text in the…
CallumH
  • 751
  • 1
  • 7
  • 22
0
votes
0 answers

Reactable: Multiple nested tables

From this: https://glin.github.io/reactable/articles/examples.html#nested-tables I have a nested table. I want to add another nested table within that. How do I do that? library(tidyverse) library(reactable) df <- CO2 %>% mutate(Planet =…
OTA
  • 269
  • 2
  • 17
0
votes
1 answer

How do I ensure reactable::getReactableState() returns the correct row selection in a Shiny app when table is regenerated?

I have a Shiny app (please see end for a minimum working example) with a "parent" reactable table and a drilldown table that pops up when a user clicks on a row of the parent table. The information on which row is selected in the parent is obtained…
rove
  • 111
  • 6
0
votes
1 answer

R - reactable colDef() across many columns, combined with another colDef() across many columns

I have multiple column definitions that are applied different sets of columns. How may I combine them? Note: I cannot apply column definitions per column name, as these names change each day. In this case I would like html applied to all columns,…
its.me.adam
  • 333
  • 2
  • 11
0
votes
0 answers

In reactable in R, is it possible to make the height of the bars compare values across the columns (horizontally) instead of the default vertical one?

For instance, in the screenshot below if we notice in the second row under the column called "COVID-19 DEATHS" the value is 25,584. And the corresponding value under the "TOTAL EXCESS DEATHS" column is 31,897. However, the bar height of the…
0
votes
0 answers

how to drill down in reactable in one column?

I got this code, and this is the result: But I need something like this: I´ve tried to use gt tables but I couldn't do it.
0
votes
0 answers

InitComplete equivalent in reactable

I‘d like to add a DateInput in the cell of a table in shiny. When using DT this can be reached with the help of the initComplete callback. I just started using reactable and I‘m not aware of an equivalent to execute JS after the table was…
behave14
  • 1
  • 2
0
votes
0 answers

Hide weights that are used in a custom reactable weighted average aggregation

I am trying to hide the weights used in this reactable weighted average aggregation. The table rolls up correctly without the show = FALSE parameter: reactable1 However, it does not when show = FALSE is present: reactable2 It only appears to…
dereku
  • 1
  • 2
0
votes
0 answers

Remove the center line in data_bars() in reactablefmtr package in R

I am using reactablefmtr package in R and apply data_bars() for the plot. I couldn't find any parameter to remove the center line between positive and negative number. I did check css, but I don't know how to apply to the chart. Any help will be…
Jack
  • 23
  • 1
  • 4
0
votes
1 answer

Load table saved with qsave in R Markdown

I have a reactable table that I can display successfully on a web page if I embed the R Script in the R Markdown. However, I want to build the table in a separate R Script and load it into the R Markdown file. In a separate R Script I build the…
ixodid
  • 2,180
  • 1
  • 19
  • 46
0
votes
0 answers

How do I distinguish icons between positive and negative values in reactablefmtr's icon_sets instead of distinguishing based on lower and upper 50%?

I am trying to use reactablefmtr's icon_sets feature to show red up arrows when the value is positive and green down arrows when the value is negative. However, I am getting a green down arrow for slightly positive values. I believe it is because…
0
votes
1 answer

How to update a dataframe in R Shiny with user input

I want to update a dataframe with user input in an R Shiny app. The user selects a row of data, and then chooses the value to update the Species column with using selectInput. The updates need to accumulate each time, i.e., the new updates update…
tauft
  • 546
  • 4
  • 13
0
votes
1 answer

In R reactable how to add png image on cells column

I would like to add a image (local file) inside the first column of my table with reactable. Bellow is my code: Any help? data <- data.frame( Animal = c("beaver", "cow", "wolf", "goat"), Body = c(1.35, 465, 36.33, 27.66), Brain = c(8.1, 423,…
Laura
  • 675
  • 10
  • 32
0
votes
0 answers

Adjusting font size of column names in reactablefmtr package

I am trying to adjust the font size of column names in a reactablefmtr table. I successfully used cell_style to change font size of the cells but cannot figure out how to change the column names. Thanks! I tried to use the font_size function in…
Daniel
  • 1
0
votes
2 answers

Change search bar text in reactable table in R

How do you change the search bar text "Search" in a reactable table? I would like to change "Search" to "Search for Your Name" I have looked everywhere online for a solution but haven't found anything. The reactable examples article doesn't have…
marigato
  • 65
  • 5