Create a custom icon set
icon_set(path, meta = list(name = "Custom", version = NULL, license = NULL))An icon_set object providing access to the SVG files found at
path, for example via $.
dir <- tempfile()
dir.create(dir)
writeLines(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0"/></svg>',
file.path(dir, "example.svg")
)
custom <- icon_set(dir)
custom$example
#> <icons[1]>
#> [1] <icon:example>