ReporteRs (version 0.8.8)

addDate: Insert a date

Description

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).

Value

a document object

Details

addDate only works for pptx documents.

See Also

pptx, addFooter, addPageNumber

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" )
# }