Learn R Programming

ReporteRs (version 0.8.10)

writeDoc: Write a document object

Description

Write a document object into a file

Usage

writeDoc(doc, ...)

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

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

Arguments

doc

document object

...

unused

file

single character value, name of the html file to write.

See Also

docx, pptx

Examples

Run this code
# NOT RUN {
doc <- docx()
writeDoc( doc, "ex_write_doc.docx")

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

Run the code above in your browser using DataLab