icon_set: Create a custom icon set

View source: R/icon.R

icon_setR Documentation

Create a custom icon set

Description

Create a custom icon set

Usage

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 documentation built on Sept. 3, 2026, 5:10 p.m.