Icons created from an SVG file (such as those from an icon_set(), or read directly with read_icon()) retain the path to their source file. This is useful for passing icons to other packages that work with SVG files directly, such as ggplot2 (via grid::rasterGrob() or similar) or gt.

icon_path(x)

Arguments

x

An icon or icon_vec object.

Value

A string (or, for an icon_vec, a character vector) giving the path(s) to the icon's source SVG file(s) on disk.