Insert a date into a document object
addDate(doc, ...) # S3 method for pptx addDate(doc, value, str.format = "%Y-%m-%d", ...)
doc | document object |
---|---|
... | further arguments passed to other methods |
value | character value to add into the date shape of the current slide. optionnal. If missing current date will be used. |
str.format | character value to use to format
current date (if |
a document object
addDate only works for pptx documents.
pptx
, addFooter
,
addPageNumber
doc <- pptx() doc <- addSlide( doc, slide.layout = "Title and Content" ) ## add a date on the current slide doc = addDate( doc ) doc <- addSlide( doc, slide.layout = "Title and Content" ) ## add a page number on the current slide but not ## the default text (slide number) doc = addDate( doc, "Dummy date" )