forked from mitchelloharawild/icons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
36 lines (27 loc) · 1.37 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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figure/"
)
```
# icon <img src="man/figure/logo.png" align="right" />
<!-- [![Travis-CI Build Status](https://travis-ci.org/earowang/icon.svg?branch=master)](https://travis-ci.org/earowang/icon) -->
<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/icon)](https://cran.r-project.org/package=icon) -->
<!-- [![Downloads](http://cranlogs.r-pkg.org/badges/icon?color=brightgreen)](https://cran.r-project.org/package=icon) -->
An R package to easily insert web icons, including [font awesome](http://fontawesome.io), [academicons](http://jpswalsh.github.io/academicons/) and [ionicons](http://ionicons.com), into RMarkdown. Besides emoji, a sea of icons are floating around the web, which provides new options (or fun) for digital expressions. Please see [the vignette](http://www.mitchelloharawild.com/icon/) as slides for details.
It works with inline code `` `r '\x60r icon::fa("rocket")\x60'` `` and chunks:
````
```{r, eval=FALSE}
icon::fa("rocket") # equivalent to icon::fa_rocket()
```
````
The **development** version can be installed from GitHub using:
```{r gh-installation, eval = FALSE}
# install.packages("devtools")
devtools::install_github("ropenscilabs/icon")
```