ReporteRs (version 0.7.0)

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

Description

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

Usage

## S3 method for class 'pptx':
writeDoc(doc, file, ...)

Arguments

doc
pptx object that has to be written.
file
single character value, name of the file to write.
...
further arguments, not used.

See Also

pptx, writeDoc

Examples

Run this code
# Create a new document
doc = pptx( title = "title" )

# add a slide with layout "Title and Content"
doc = addSlide( doc, slide.layout = "Title and Content" )

# add a dummy text in the content shape
doc = addParagraph(doc, "Hello Word!")

# Write the object in file "writeDoc_example.pptx"
writeDoc( doc, "writeDoc_example.pptx" )

Run the code above in your browser using DataLab