addDate
From ReporteRs v0.8.8
by David Gohel
Insert a date
Insert a date into a document object
Usage
addDate(doc, ...)# S3 method for pptx
addDate(doc, value, str.format = "%Y-%m-%d", ...)
Arguments
- 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
value
is missing).
Details
addDate only works for pptx documents.
Value
a document object
See Also
Examples
# NOT RUN {
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" )
# }
Community examples
Looks like there are no examples yet.