reactablefmtr icon indicating copy to clipboard operation
reactablefmtr copied to clipboard

`icon_sets()` not recognizing certain icons

Open asadow opened this issue 3 years ago • 3 comments

The guide did not specify that some icons are unavailable and why. I get repeatable errors for icons like "island-tropical", "face-thermometer", "face-mask".

library(tidyverse)
library(reactable)
library(reactablefmtr)

car_data <- MASS::Cars93 %>%
  filter(Type %in% c("Compact", "Sporty", "Van")) %>%
  select(c("Make", "Type", "MPG.city", "MPG.highway")) %>%
  head(10)

reactable(
  car_data,
  defaultColDef = colDef(
    align = "center",
    cell = icon_sets(car_data, icon_size = 28, icons = "face-mask", colors = c("red", "grey", "darkgreen"))
  )
)
#> The `name` provided ('face-mask') does not correspond to a known icon
#> The `name` provided ('face-mask') does not correspond to a known icon
#> The `name` provided ('face-mask') does not correspond to a known icon
#> [repeats above message for number of rows in data]

asadow avatar Feb 15 '23 21:02 asadow

The same problem occurs with icon_assign where many free font-awesome icons are not rendered or found.

rprops avatar Apr 20 '23 04:04 rprops

The fonts listed above ("island-tropical", "face-thermometer", and "face-mask") are pro - this is probably why you are having problems.

jmodlis avatar Aug 13 '24 14:08 jmodlis

Hmm, I wonder if we can integrate a list of pro icons for a more helpful error message.

asadow avatar Aug 13 '24 15:08 asadow