/gameicons

Use icons from game-icons.net in R

Primary LanguageCSSOtherNOASSERTION

gameicons

This package adds a single function to use icons from game-icons.net in shiny applications or RMD files that are rendered to html. Most of these icons are licensed under CC BY 3.0. See the pages for the individual icons to see who you should credit. The font files are taken from seiyria/gameicons-font.

Installation

devtools::install_github('oganm/gameicons')

Usage

game_icon('swordman')

htmltools::html_print(shiny::actionButton('meh','Sword Dude',icon = game_icon('swordman')))

You can list available icons, their authors and the license they were released under using list_icons.

head(list_icons())
#>                   icon       author   license
#> 1         police-badge Andy Meneely CC BY 3.0
#> 2           pistol-gun John Colburn CC BY 3.0
#> 3               arrest   Delapouite CC BY 3.0
#> 4        banging-gavel   Delapouite CC BY 3.0
#> 5 chalk-outline-murder   Delapouite CC BY 3.0
#> 6              convict   Delapouite CC BY 3.0