writeDoc: Write a document object

Description Usage Arguments See Also Examples

View source: R/writeDoc.R

Description

Write a document object into a file

Usage

1
2
3
4
5
6
7
writeDoc(doc, ...)

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

## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if( check_valid_java_version() ){

doc <- docx()
writeDoc( doc, "ex_write_doc.docx")

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

}

davidgohel/ReporteRs documentation built on March 23, 2020, 11 p.m.