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
1 answer
Color values with Reactable
I am trying to make some conditional coloring for the values. The thing is that I already read some posts here on StackOverflow and in the reactable wiki but none of them are working!
reactable(prueba,
defaultColDef = colDef(
…

Mateo Guajardo
- 55
- 7
0
votes
1 answer
How to make an aggregate in Reactable without using the NA values
I am trying to aggregate with the reactable package using ASP <- reactable::colDef(aggregate = 'mean') but it returns NAs because one of the rows has an NA.
Is there a way to tell reactable::colDef() to ignore the NA values and calculate the mean…

Mateo Guajardo
- 55
- 7
0
votes
1 answer
How to specify fonts on reactablefmtr themes
The code below is from Kyle Cuilla's page on themes https://kcuilla.github.io/reactablefmtr/articles/themes.html
In the displayed output on his page, it shows a nice sans serif font. But when I run it, I get some kind of Times font. I've looked…

Chris
- 1,449
- 1
- 18
- 39
0
votes
1 answer
Cannot render grouped cells without row count in reactable
I'm using rMarkdown, knitting to html, and trying to do something simple in reactable - use JS to suppress row totals in parentheses. I'm literally copying from their own guide, but its not working:
reactable Grouped Cell Rendering
data <-…

adajam
- 193
- 1
- 10
0
votes
1 answer
Is it possible to exclude columns from "groupBy" in reactable?
I have a list of University's sorted by rank:
rank uni data
1 Stanford University 1
1 Stanford University 5
1 Stanford University 3
2 Yale University 2
3 …

adajam
- 193
- 1
- 10
0
votes
1 answer
Show empty table before filtering with crosstalk
I would like to filter a reactable with crosstalk. Let's say I have the following Rmd-file:
---
title: "blabla"
output:
flexdashboard::flex_dashboard:
orientation: rows
social: menu
source_code: embed
theme:…

mharinga
- 1,708
- 10
- 23
0
votes
1 answer
How to keep track of nested tables in reactable?
I have a problem that I'm not quite sure how to solve. Consider this example Shiny app:
library(shiny)
library(reactable)
library(dplyr)
random_requests <- data.frame(
Request_ID = c(1,2,3,4,5),
Status = c("Accepted", "Accepted",…

Kyle Weise
- 869
- 1
- 8
- 29
0
votes
1 answer
How to introduce non-numeric arguments in the same vector with numeric arguments for a reactable?
and thanks for reading me again
I am working with a table in which in the "Valor" column I have a vector with numbers from 0 to 1 for bars with percentages as seen in the following image:
But I would like that in the fields where there is a value…

Jorge Hernández
- 567
- 4
- 9
0
votes
1 answer
Using subsetted data in Reactable table
In reactable, you can make edits to named columns as follows:
columns = list(
Species = colDef(minWidth = 140),
AnotherNamedColumn = colDef(align = "center")
)
The data I am using changes weekly, and so I can't use a named…

adajam
- 193
- 1
- 10
0
votes
0 answers
How would I link my reactable table to my geojson map so that clicking on a location sorts the table?
So, I have some geojson data that I have that I was thinking of turning into a plot using ggplot2. That same data with added detail is also sitting inside of a reactable table. I want to link the map to the table so that when the user clicks on a…

AkRFL
- 19
- 4
0
votes
1 answer
How to get negative values plotted in reactable bar chart?
I'm having some difficulty getting my negative bar chart to appear in my reactable table. I have example code below and as you'll see, my positive values are plotted, but not my negative ones. I'm stuck on what I'm missing, so any help will be…

Ben_89
- 249
- 1
- 8
0
votes
1 answer
Calendar Heatmap in R
Looking to create a gt/reactable table in R that serves as a calendar heatmap. Something just like the one found on this site https://glin.github.io/reactable/articles/cookbook/cookbook.html. When I try to replicate that code, I get an error: "only…

bodega18
- 596
- 2
- 13
0
votes
1 answer
How to omit NA's in count when grouping in reactable
See a simple code
library(reactable)
data = data.frame(x = c('a','a','b','b'),
values = c(NA,5,3,NA))
reactable(data,
groupBy = 'x')
Is it possible to count only the lines which aren't NA?
I want to see a(1), b(1)…

Arkadi w
- 129
- 22
0
votes
1 answer
Unable to fix the first column using renderDT in R Shiny?
In the example that I posted below, I have a df with 100 rows and 100 columns with numeric values (except the first column) that I would like to print with sequential color scale on the main panel in Shiny. Since all columns don’t fit in a single…

Mohamad Sahil
- 165
- 2
- 12
0
votes
0 answers
Provide GROUP info details in R reactable nested / grouped table
I am creating a table in R using {reactable}.
The data I am using is grouped by Species
I would like that when I expand the group row, that I get details for the GROUP.
The examples in the {reactable} documentation only show how to provide details…

mdb_ftl
- 423
- 2
- 14