Description Usage Arguments Details See Also Examples
Create an object with a text to display and its formatting properties.
1 2 3 4 5 6 7 8 9 10 | pot(value = "", format = textProperties(), hyperlink, footnote)
## S3 method for class 'pot'
print(x, ...)
## S3 method for class 'pot'
as.character(x, ...)
## S3 method for class 'pot'
knit_print(x, ...)
|
value |
text value or a value that has a |
format |
formatting properties (an object of class |
hyperlink |
a valid url to use as hyperlink when clicking on |
footnote |
a |
x |
a |
... |
further arguments, not used. |
a pot (piece of text) is a convenient way to define a paragraph of text where some text are not all formated the same.
A pot can be associated with an hyperlink.
A pot can be associated with a Footnote. Note that footnotes can not be inserted in
a pptx
object.
addParagraph
, Footnote
, +.pot
, pot_img
,
1 2 3 4 5 6 7 8 9 10 | # "My tailor is rich" with formatting on some words
pot1 <- pot("My tailor", textProperties(color = "red" ) ) +
" is " + pot("rich", textProperties(shading.color = "red",
font.weight = "bold" ) )
# "Cats and dogs" with formatting on some words
pot2 = pot("Cats", textProperties(color = "red" ) ) +
" and " +
pot("dogs", textProperties( color = "blue" ),
hyperlink = "http://www.wikipedia.org/" )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.