# 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