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
1 answer

R Markdown: Printing reactable tables with pagedown::chrome_print causes some unreadable rows

I'm trying to create parametrized R markdown reports that contain some text and a table. I'm firstly creating html output (and use css for custom style) and then I print them with pagedown package. All is near to perfect except that in some reports…
martina
  • 11
  • 4
0
votes
1 answer

Why the Conditional Color Styling inside the Reactable is not working?

Data df <- tibble( x = rep(paste0( "del", 1:10 ), 100), y = rep(paste0( "topic", 1:5 ), 200), z = paste0("question", 1:1000), w = 1:1000 ) Code reactable( df, groupBy = c("x", "y"), columns = list( w = colDef( aggregate =…
0
votes
1 answer

Using index of value in function in R

For my reactable table I want to create a function that compares 2 columns, namely one of this year and one of last year. I want the function to color the value in the current year column based on whether or not it's higher or lower than the value…
Jolien J
  • 177
  • 2
  • 12
0
votes
1 answer

How to update datatable after selecting data source from radio button?

I am preparing a shiny application. I have several data frames in which I store data about the population, broken down by years. So, for example, table_2017 stores data for 2017, table_2018 data for 2018, etc. I would like to display all the data in…
blueberry40
  • 35
  • 1
  • 6
0
votes
1 answer

Highlight R Reactable's sorted headers that already have a default background header style?

From here (See Highlight sorted headers) I see how to highlight sorted headers. Is it possible to modify this method to highlight the sorted header column if there is already a background colour given to the headers? Highlight Sorted Headers - No…
ixodid
  • 2,180
  • 1
  • 19
  • 46
0
votes
1 answer

React-Table compilation error element type invalid

I am learning react and trying to make the code work, that is using react-table and functional component. The example code fetches list of git-hub repos based on the search keyword entered and displays the list using react-table There are two…
Sudhir Jangam
  • 646
  • 2
  • 13
  • 20
0
votes
1 answer

Require Top pagination using reactable library

reactable In a react project, pagination is implemented using reactable (link above) library. but by default, pagination is on the bottom. I am trying to show pagination on top and bottom both but there are no props in the source code doc which I…
0
votes
2 answers

insert ggplot barplot in table in R Shiny

I wish to recreate a table like this where I insert a ggplot graph into a cell. I would like to use reactable to generate my table. Any suggestions on how to proceed? I thought maybe I could use ggsave() to save the plot in png. I do not know…
0
votes
2 answers

Hide and disable all/none checkbox from Reactable table and maintain column alignment

I wish to remove the all/none checkbox from a Reactable table in a Shiny app. @Abdessabour Mtk has provided a solution here. However, when the checkbox is actually removed, the header row shifts left and the left-alignment of the columns is…
ixodid
  • 2,180
  • 1
  • 19
  • 46
0
votes
1 answer

Add css styling to Reactable column

I wish to add a conditional colored square instead of a number to a column in a Reactable table. For example, this table's Flag column will be Red if Flag <=2 and Green if Flag > 2. Reactable Table with Flag…
ixodid
  • 2,180
  • 1
  • 19
  • 46
0
votes
2 answers

How can I correctly aggregate nested rows with reactable in R?

I am working on a Shiny app where the reactable package has been very useful because of the nested structure of my data. It allows me to collapse and summarize rows within a higher-level category, and only expand to reveal the 'subrows' if/when…
0
votes
1 answer

Unable to filter values while using reactable conditional formatting

I am trying to use conditional formatting in reactable. So the issue I am facing here is it even formats values when they are 0 and kind of showing the output (0 shouldnt be green, it should be blank). Below is the code which I have got so far. Any…
SNT
  • 1,283
  • 3
  • 32
  • 78
0
votes
1 answer

Flexdashboard on shinyapp.io with embedded images [R]

I have an R flexdashboard that runs with shiny and although I have managed to host it on shinyapp.io, I cannot get images to render. I understand that normally, with a Shiny app, I would need to place the images in a 'www' folder. But with a…
mundos
  • 459
  • 6
  • 14
0
votes
1 answer

row_count data not showing up in reactable

I have a dataframe with 6 variables (text excerpts and coder categories:Julie, Amy, Hannah, Mae). library(sjmisc) library( reactable) myData <- data.frame( stringsAsFactors = FALSE, id = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L, 9L, 10L), …
jskibro
  • 15
  • 5
-1
votes
1 answer

Set y axis limit in {reactablefmtr} `react_sparkline` in each row separately

I have a reactable which contains react_sparklines from the {reactablefmtr} package which in turn is based on the {dataui} package (at least the sparklines). I want to set the y axis in each row to a different value and it is not working (see below…
TimTeaFan
  • 17,549
  • 4
  • 18
  • 39
1 2 3
11
12