preview.Rd
Helper functions for previewing specific icons, icon types, or all available icons.
preview_icon(name, max_size = 256, display = TRUE, inc_label = FALSE) preview_type(type, max_size = 128, display = TRUE) preview_all(n_col = 4, max_size = 128, display = TRUE)
name | Icon name to preview. |
---|---|
max_size | Maximum size of icon to include in preview, checks height and width. |
display | Should the preview be displayed, via |
inc_label | Should the icons name be include in the preview. |
type | Icon type to preview. |
n_col | Number of columns to use when displaying all icons. |
Returns a "magick-image" object.
preview_icon("rstudio") preview_type("File")