slideMarkdown {crunch}R Documentation

Add a new markdown slide to a deck

Description

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.

Usage

slideMarkdown(x)

slideMarkdown(x) <- value

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

markdownSlideImage(file)

## S4 method for signature 'CrunchMarkdownSlide'
slideMarkdown(x)

## S4 replacement method for signature '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

## Not run: 
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")
)

## End(Not run)

[Package crunch version 1.30.4 Index]