ReporteRs (version 0.7.6)

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

Description

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

Usage

# S3 method for 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
# NOT RUN {
#START_TAG_TEST
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 )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace