An R package to easily insert web icons into R documents. Many icons are available for use around the web, which provides new options (or fun) for digital expressions.
It works with inline code `r icon::fa("rocket")`
and chunks:
```r
icon::fa("rocket") # equivalent to icon::fa$rocket()
```
The development version can be installed from GitHub using:
# install.packages("devtools")
devtools::install_github("mitchelloharawild/icon")
This is the second iteration of the icon package, the first icon package has been successful, but lacked a few features such as SVG icons, user defined libraries, and extensibility support. You can read the notes on the new API here. It turns out that it was easier to build the new and improved icon from scratch, which is what this repository is. In the future this version of icon might just be merged into rOpenScilabs/icon, but for the mean time it will be developed here. We anticipate that there will not be any major changes to the existing API, so hopefully this will be a seamless transition for users!