Create a custom icon set

icon_set(path, meta = list(name = "Custom", version = NULL, license = NULL))

Arguments

path

Path to the icons

meta

Meta information for the icons

Value

An icon_set object providing access to the SVG files found at path, for example via $.

Examples

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>