ReporteRs (version 0.8.5)

writeDoc: Write a document object

Description

Write a document object into a file

Usage

writeDoc(doc, ...)

## S3 method for class 'docx': writeDoc(doc, file, ...)

## S3 method for class 'pptx': writeDoc(doc, file, ...)

## S3 method for class 'bsdoc': writeDoc(doc, file, ...)

Arguments

doc
document object
...
unused
file
single character value, name of the html file to write.

Details

When the document object is a bsdoc object, writeDoc is considering the directory where 'html' file is written. Bootstrap files (css, js, etc.) will be copied in the directory if directory does not exist.

See Also

docx, pptx, bsdoc

Examples

Run this code
doc <- docx()
writeDoc( doc, "ex_write_doc.docx")

doc <- pptx()
doc <- addSlide(doc, "Title and Content")
writeDoc( doc, "ex_write_doc.pptx")

doc <- bsdoc()
writeDoc( doc, "ex_write_doc/index.html")

Run the code above in your browser using DataLab