Store icons in a local directory to simplify sharing of documents containing icons. Bundling icons with your document or app avoids the need for collaborators or servers to have all icons from a library installed.
icon_save(icons, path = ".")Invisibly, the icon_set created from the newly saved SVG files
at path.
if(icon_installed(fontawesome) && icon_installed(ionicons)){
icon_save(
list(arrow = fontawesome$solid$`arrow-right`, alarm = ionicons$alarm),
path = "icons"
)
app_icons <- icon_set("icons")
app_icons$arrow
}