ReporteRs (version 0.2)

addSlide.reveal: Insert a slide into a reveal object

Description

Add a slide into a "reveal" object.

Usage

# S3 method for reveal
addSlide (doc, ...)

Arguments

doc

Object of class "reveal" where slide has to be added

...

further arguments, not used.

Value

an object of class "reveal".

Details

A slide is where content is added. This function is a key function ; if no slide has been added into the document object no content (tables, plots, images, texts) can be added.

See Also

reveal, addSlide

Examples

Run this code
# NOT RUN {
# Create a new document
doc = reveal( title = "title" )

# reveal document to write
reveal.directory <- "reveal_doc"

# add a page where to add R outputs with title 'page example'
doc = addSlide( doc )

# add iris dataset as a table in the page
doc <- addTable(doc, iris )

# write the html object in a directory
writeDoc( doc, directory = reveal.directory )
# }

Run the code above in your browser using DataLab