icons: Easily Insert SVG Icons into R Outputs

Provides tools to download, style, and insert scalable vector graphics (SVG) icons into R output, such as 'R Markdown' and 'Quarto' documents, 'Shiny' apps, 'gt' tables, and 'ggplot2' visualisations via the 'ggicons' package. Bundles popular icon libraries, such as 'Font Awesome' (<https://fontawesome.com>), 'Academicons' (<https://jpswalsh.github.io/academicons/>), and 'Material Design Icons' (<https://fonts.google.com/icons>), which are downloaded on demand to keep the package small, or build a custom icon set from any folder of local SVG files. Icon appearance, such as size, colour, and position, can be customised.

Version: 1.0.0
Depends: R (≥ 3.1.3)
Imports: base64enc, knitr, rlang, htmltools, glue, rappdirs, xml2, stringr, jsonlite, cli, utils, vctrs
Suggests: rsvg, gh, rmarkdown, pillar, shiny, testthat (≥ 3.0.0)
Published: 2026-09-03
DOI: 10.32614/CRAN.package.icons (may not be active yet)
Author: Mitchell O'Hara-Wild ORCID iD [aut, cre], Earo Wang ORCID iD [ctb], Timothy Hyndman ORCID iD [ctb], Matthew Warkentin ORCID iD [ctb], Tom Jemmett ORCID iD [ctb]
Maintainer: Mitchell O'Hara-Wild <mail at mitchelloharawild.com>
BugReports: https://github.com/mitchelloharawild/icons/issues
License: MIT + file LICENSE
URL: https://pkg.mitchelloharawild.com/icons/, https://github.com/mitchelloharawild/icons
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: icons results

Documentation:

Reference manual: icons.html , icons.pdf
Vignettes: Using icons (source, R code)

Downloads:

Package source: icons_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): icons_1.0.0.tgz, r-oldrel (arm64): icons_1.0.0.tgz, r-release (x86_64): icons_1.0.0.tgz, r-oldrel (x86_64): icons_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=icons to link to this page.