# 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