ReporteRs (version 0.2)

writeDoc.reveal: Write a reveal object in a reveal file

Description

Write the "reveal" object in '.reveal' files located in a specified directory.

Usage

# S3 method for reveal
writeDoc (doc, directory, ...)

Arguments

doc

Object of class "reveal" that has to be written.

directory

single character value, name of the directory that will contain generated reveal pages.

...

further arguments, not used.

See Also

reveal, writeDoc

Examples

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

# add a page where to add R outputs
doc = addSlide( doc  )
# add iris dataset as a table in the page
doc <- addTable(doc, iris )

# write the reveal object in a directory
reveal.directory <- "reveal_doc"
reveal.files = writeDoc( doc, directory = reveal.directory )
# }

Run the code above in your browser using DataLab