ReporteRs (version 0.7.7)

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
doc.filename = "writeDoc_example.docx"

# set default font size to 10
options( "ReporteRs-fontsize" = 10 )

doc = docx( )

# Write the object
writeDoc( doc, file = doc.filename )

Run the code above in your browser using DataCamp Workspace