ReporteRs (version 0.7.0)

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

Description

Write the docx object in a '.docx' file.

Usage

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

Arguments

doc
Object of class docx that has to be written.
file
single character value, name of the file to write.
...
further arguments, not used.

See Also

docx, writeDoc

Examples

Run this code
# Create a new document
doc = docx( title = "title" )

doc = addParagraph(doc, "Hello Word!", stylename = "Normal")

# Write the object in file "writeDoc_example.docx"
writeDoc( doc, "writeDoc_example.docx" )

Run the code above in your browser using DataLab