ReporteRs (version 0.6.0)

pot: Piece of Text (formated text)

Description

Create an object with a text to display and its formatting properties.

Usage

pot(value = "", format = textProperties())

Arguments

value

text value or a value that has a format method returning character value.

format

formatting properties (an object of class textProperties).

Details

a pot (piece of text) is a convenient way to define a paragraph of text where some text are not all formated the same.

See Also

addParagraph.docx, addParagraph.pptx, addParagraph.html , +.pot

Examples

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

Run the code above in your browser using DataCamp Workspace