| icon_uri | R Documentation |
data: URIRenders an icon's SVG markup to a base64-encoded URI.
This enables self-contained and styled icon for consumers that use image
paths/URLs, including for example: an <img src>, a gt::html() cell,
and a leaflet marker iconUrl.
icon_uri(x)
x |
An |
A character vector giving each icon's base64 encoded URI.
path <- tempfile(fileext = ".svg")
writeLines(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0"/></svg>',
path
)
icon_uri(read_icon(path))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.