ReporteRs (version 0.8.0)

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

Description

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

Usage

# S3 method for 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
# NOT RUN {
#START_TAG_TEST
doc.filename = "writeDoc_example.pptx"

# set default font size to 24
options( "ReporteRs-fontsize" = 24 )

doc = pptx( title = "title" )

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

doc = addTitle( doc, "Title example 1" )

# Write the object
writeDoc( doc, file = doc.filename )
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace