ReporteRs (version 0.4)

+.pot: pot concatenation

Description

"+" function is to be used for concatenation of pot elements. Concatenation of 2 pot objects returns a pot (of length 2).

Usage

# S3 method for pot
+ (e1, e2)

Arguments

e1

a pot object or a character (vector of length 1).

e2

a pot object or a character (vector of length 1).

Details

at least one of the two objects must be a pot object. If one of the 2 parameters is a simple string, it is converted as a pot object with no associated format ; therefore, document default document style will be used (see addParagraph).

See Also

addParagraph, addParagraph.docx, addParagraph.pptx, pptx, docx

Examples

Run this code
# NOT RUN {
pot("My tailor", textProperties(color="red") ) + " is " + pot("rich"
	, textProperties(font.weight="bold") )
# }

Run the code above in your browser using DataCamp Workspace