Create an object with a text to display and its formating properties.
pot(value = "", format = textProperties())
text value or a value that has a
format
method returning character value.
formating properties (an object of class
textProperties
).
a pot (piece of text) is a convenient way to define a paragraph of text where some texts are not all formated the same.
addParagraph
,
addParagraph.docx
,
addParagraph.pptx
,
addParagraph.html
, pptx
,
docx
, html
# 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 DataLab