-
Notifications
You must be signed in to change notification settings - Fork 9
/
README.Rmd
46 lines (27 loc) · 1.19 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
output:
github_document:
html_preview: false
---
# anicon
## Overview
This R-package allows for easy insertion of animated [font awesome](https://fontawesome.com) or [academicons](https://jpswalsh.github.io/academicons/) icons into R markdown or Shiny.
It works with inline code such as
```{r, results='asis', echo=FALSE}
cat("`` `r anicon::faa(\"leaf\", animate=\"burst\")` ``")
```
You can find the vignette [here](https://anicon.netlify.com/).
## Installation
You can install this package from github as:
```{r, eval=F}
# install.packages("devtools")
devtools::install_github('emitanaka/anicon')
```
## Example
![](https://raw.githubusercontent.com/emitanaka/anicon/master/inst/media/animate.gif)
`anicon` now also has text animation!
![](https://raw.githubusercontent.com/emitanaka/anicon/master/inst/media/anitextshow.gif)
See more in the vignette [here](https://anicon.netlify.com/).
Font awesome animation is brought thanks to [font-awesome-animation](https://l-lin.github.io/font-awesome-animation/).
## Still icons
For still icons you can try either the [`fontawesome`](https://github.com/rstudio/fontawesome) package or [`icon`](https://github.com/ropenscilabs/icon) package .