Last chance! 50% off unlimited learning
Sale ends in
Create a container of paragraphs of text (pot
objects).
set_of_paragraphs(...)
pot objects, one per paragraph.
each pot are representing a paragraph.
A paragraph consists of one or more pieces of text and ends with an end of line.
Objects of class set_of_paragraphs
are to be used with addParagraph
.
# NOT RUN {
pot1 = pot("My tailor", textProperties(color="red") ) + " is " + pot("rich"
, textProperties(font.weight="bold") )
pot2 = pot("Cats", textProperties(color="red") ) + " and " + pot("Dogs"
, textProperties(color="blue") )
my.pars = set_of_paragraphs( pot1, pot2 )
# }
Run the code above in your browser using DataLab