text | R Documentation |
Add text/plain
content to a message.
text(
msg,
content,
disposition = "inline",
charset = "utf-8",
encoding = "7bit",
language = FALSE,
interpolate = TRUE,
.open = "{{",
.close = "}}",
.envir = NULL
)
msg |
A message object. |
content |
A string of message content. |
disposition |
Should the content be displayed inline or as an
attachment? Valid options are |
charset |
What character set is used. Most often either |
encoding |
How content is transformed to ASCII. Options are
|
language |
Language of content. If |
interpolate |
Whether or not to interpolate into input using glue. |
.open |
The opening delimiter. |
.close |
The closing delimiter. |
.envir |
Environment used for |
The text/plain
format is
described in RFC 2646.
Uses glue::glue()
to evaluate expressions enclosed in brackets as R code.
A message object.
html
, render
msg <- envelope() %>% text("Hello!")
# Using {glue} interpolation.
#
name <- "Alice"
msg <- envelope() %>% text("Hello {name}.")
print(msg, details = TRUE)
# Disable {glue} interpolation.
#
msg <- envelope() %>% text("This is a set: {1, 2, 3}.", interpolate = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.