Helper functions for providing a list of available icons or types. Both functions support the use of regular expressions to subset the results to make them more manageable.

available_icons(pattern = NULL, ...)

available_types(pattern = NULL, ...)

Arguments

pattern

A regular expression pattern

...

Additional arguments that are passed to grepl().

Value

  • available_icons() returns a named (by type) list of icons.

  • available_types() returns a vector of icon types matching the given pattern.

Examples

available_icons("vcs")
#> $Other #> [1] "vcsUnstage" #> #> $Source #> [1] "vcsFileDiff" #> #> $`Version control` #> [1] "vcsAddFiles" "vcsCommit" "vcsDiff" "vcsIgnore" #> [5] "vcsPull" "vcsPullRebase" "vcsPush" "vcsRefresh" #> [9] "vcsRemoveFiles" "vcsResolve" "vcsRevert" "vcsShowHistory" #> [13] "vcsViewOnGitHub" #>
available_types("Common")
#> [1] "Common"