icons
icons copied to clipboard
Compatibility with {gt}
Lists of icons can be used with {gt}
if their svg value is obtained via format, then handled as html via gt::fmt_markdown()
.
library(icons)
#> -- Installed icons ----------------------------------------------- icon 0.2.0 --
#> v ionicons 5.2.3 v google_material 4.0.0
#> v health_icons 0.1.0 v feather_icons v4.28.0
#> v academicons 1.9.1 v octicons 11.2.0
#> v simple_icons 4.4.0 v fontawesome 5.15.2
#> v bioicons 1.0.0
library(gt)
rockets <- icon_find("rocket")
tibble::tibble(
name = names(rockets),
icon = lapply(rockets, format)
) |>
gt::gt() |>
fmt_markdown("icon")
Created on 2023-08-17 with reprex v2.0.2