Add a title into a "pptx"
object.
# S3 method for pptx
addTitle(doc, value, ...)
Object of class "pptx"
"character"
value to use as title
text
further arguments, not used.
an object of class "pptx"
.
# NOT RUN {
#START_TAG_TEST
# Create a new document
doc = pptx( title = "title" )
# add a slide with layout "Title and Content"
doc = addSlide( doc, slide.layout = "Title and Content" )
# Here we fill the title shape with "My title"
doc = addTitle( doc, "My title" )
# Write the object in file "addTitle_example.pptx"
writeDoc( doc, "addTitle_example.pptx" )
#STOP_TAG_TEST
# }
Run the code above in your browser using DataLab