| icon_set | R Documentation |
Create a custom icon set
icon_set(path, meta = list(name = "Custom", version = NULL, license = NULL))
path |
Path to the icons |
meta |
Meta information for the icons |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.