Markdown slides allow you to add rich text tiles to your Crunch Dashboards. markdownSlideImage() is a helper for embedding the data of an image from your computer into the slide.

slideMarkdown(x)

slideMarkdown(x) <- value

newMarkdownSlide(deck, ..., title = "", subtitle = "")

markdownSlideImage(file)

# S4 method for CrunchMarkdownSlide
slideMarkdown(x)

# S4 method for CrunchMarkdownSlide,character
slideMarkdown(x) <- value

Arguments

x

A CrunchMarkdownSlide

value

A string to replace the markdown content with

deck

A Crunch Deck

...

Unnamed arguments are text that are combined to create the markdown body named arguments are passed to the API.

title

The slide's title

subtitle

The slide's subtitle

file

File path to an image

Value

A MarkdownCrunchSlide

See also

newSlide() for creating an analysis slide

Examples

if (FALSE) {
newMarkdownSlide(deck, "We contacted 1,000 people by telephone", title = "Methodology")

newMarkdownSlide(
    deck,
    "The 3 most **popular** vegetables are:\n",
    "- Fennel\n",
    "- Carrots\n",
    "- Avocado\n",
    title = "Key findings"
)

newMarkdownSlide(
    deck,
    "crunch.io: ",
    markdownSlideImage("logo.png")
)
}