Questions tagged [reactablefmtr]

Use this tag for questions related to the reactablefmtr package. This package provides functions to customize and enhance table created with the reactable package.

15 questions
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
2
votes
1 answer

use solid fontawesome icons in `reactablefmtr::icon_assign()`

In the following example I have the regular version of the fontawesome star icon: library(dplyr) library(reactable) library(reactablefmtr) tibble( stars = 1:5 ) %>% reactable( columns = list( stars = colDef( show = TRUE, …
eastclintw00d
  • 2,250
  • 1
  • 9
  • 18
1
vote
1 answer

How to generate dynamical `color_tiles` in {reactablefmtr}

Is there a way to generate the column defitions for color_tiles dynamically? Here is my current approach which does not work correctly, as the tiles are always colored by the last class-column that I…
eastclintw00d
  • 2,250
  • 1
  • 9
  • 18
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"), …
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
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

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

How to change background fill when using reactablefmtr?

I just wondering how to change the background color of any table produced by reactablefmtr? It has a bunch of specific themes, but I need to customize the background fill. This is the dataset that I've been working with. lele <- data.frame( …
0
votes
1 answer

In R Shiny with reactable package how to make table downloadable by clicking on download font-awsome icon?

This is my code: library(shiny) ui <- fluidPage( data<- iris[1,] %>% mutate(download = 1), reactable(data, columns = list( download = colDef(cell = icon_assign(data, icon = "download")))) ) server <- function(input,…
Laura
  • 675
  • 10
  • 32
0
votes
0 answers

In R - Using gt() and gtExtras() tables packages is possible to create expandable row?

Is it possible to include a expandable row in gt()/gtExtras() packages in R, just like we can create in reactable() package? https://glin.github.io/reactable/articles/examples.html#expandable-row-details This is my…
Laura
  • 675
  • 10
  • 32
0
votes
1 answer

In R language with (reactable) How to align all bars for different values when using data_bars() and setting text_position = "outside-base"

I want to align all bars to appear in a nice way and not too missy for the columns when I am using data_bars() for a column inside reactable().. when the value is less than 10. the bar appears to the left of others with value > 10. because it starts…
chaw r
  • 57
  • 5
-1
votes
1 answer

double space when exporting to TXT file in python

I have this code that works: print((tabulate(email_list, showindex=False, tablefmt = 'plain')), file=open(output + '\\' + "np.txt", "w")) but when I open the file, the email addresses look like this: b e r o s u n a @ g m a i l . c …
Berny
  • 113
  • 11
-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