Learn R Programming

crunch (version 1.30.4)

slideMarkdown: 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 CrunchMarkdownSlide slideMarkdown(x)

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

Value

A MarkdownCrunchSlide

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

See Also

newSlide() for creating an analysis slide

Examples

Run this code
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")
)
}

Run the code above in your browser using DataLab