galleries 3
border_colour Colour applied to the card border (if NULL, colour inherits)
border_width Width of card border is an integer between 0 and 5
border_radius Amount of rounding on card corners is an integer between 0 and 5
Details
This function constructs the HTML necessary to specify a deck of bootstrap 4 cards suitable for
inclusion within an R markdown document. It takes a data frame as the first argument, with one
row for each card to be generated.
Cards are specified using the title, text, image, link, footer, header, and tags arguments.
These arguments take expressions to be evaluated using the user-supplied data, and should evaluate
to character vectors that have length 1 or the same number of rows as data.
The layout argument is a single character string specifying the layout of the cards: possible val-
ues are "label-below" (the default), "label-above", "label-left", "label-right", "label-only", "image-
only", "inset-top", "inset-bottom".
The width, spacing, breakpoint, border_width, and border_radius arguments all take inte-
ger inputs specifying the visual appearance of the cards. Allowed values range from 0 to 5, ex-
cept for width and breakpoint which cannot be 0. The other two arguments label_colour and
border_colour take a single string specifying colours of the relevant parts of the card.
Value
A "shiny.tag" object containing the HTML for the card deck
Examples
## Not run:
galleries %>%
cards(
title = long_name,
text = blurb,
image = image_url,
link = gallery_url
)
## End(Not run)
galleries Generative art galleries
Description
A dataset containing information describing several galleries of generative art created in R.
Usage
galleries