| read_icon | R Documentation |
Read an individual icon
read_icon(x)
x |
Path to the icon |
An icons vector: an SVG icon that can be printed, embedded
in R Markdown, or styled with icon_style(). If x is a file path, it
is retained and can be retrieved with icon_path().
path <- tempfile(fileext = ".svg")
writeLines(
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0"/></svg>',
path
)
read_icon(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.