reactablefmtr
reactablefmtr copied to clipboard
`icon_sets()` not recognizing certain icons
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]
The same problem occurs with icon_assign where many free font-awesome icons are not rendered or found.
The fonts listed above ("island-tropical", "face-thermometer", and "face-mask") are pro - this is probably why you are having problems.
Hmm, I wonder if we can integrate a list of pro icons for a more helpful error message.