ReporteRs (version 0.7.1)

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
# 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" )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace