writeDoc-methods: Write the docx document in a docx file.

Description Usage Arguments Details Examples

Description

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

Usage

1
2
  ## S4 method for signature 'Docx,character'
writeDoc(x,file)

Arguments

x

the Docx to use

file

single character value, name of the file to write.

Details

The function cannot write a document if it already exists and is opened.

Examples

1
2
3
doc <- new("Docx", title = "My example" )
doc <- addParagraph( doc, value = "Hello world", stylename = "Normal" )
writeDoc( doc, "template.docx" )

davidgohel/R2DOCX documentation built on May 14, 2019, 11:13 p.m.