random_icon: Random Icon Generator

Description Usage Arguments Value Examples

View source: R/random_icon.R

Description

This function generates a random fontawesome icon for quick usage while prototyping shiny apps.

Usage

1

Arguments

term

(optional) term to limit number of icons available to a specific category. For a list of available terms see the icon_table.

class

Additional classes to customize the style of the icon (see the usage examples for details on supported styles).

Value

An HTML icon element returned via shiny::icon()

Examples

1
2
3
4
require(shiny)
random_icon() # should display in R Viewer
random_icon("animal")
shiny::fluidRow(random_icon())

jimbrig/myicons documentation built on June 12, 2020, 12:03 a.m.