precedence | R Documentation |
Functions to influence message delivery speed and importance.
priority(msg, priority = NULL)
importance(msg, importance = NULL)
msg |
A message object. |
priority |
Priority level. One of |
importance |
Importance level. One of |
The priority()
function adds the Priority
header field which gives a hint
to influence transmission speed and delivery. Valid values are
"non-urgent"
, "normal"
, and "urgent"
. The non-standard X-Priority
header field is similar, for which valid values are 1
(Highest), 2
(High), 3
(Normal, the default), 4
(Low), and 5
(Lowest).
The importance()
function adds the Importance
header field, which gives a
hint to the message recipient about how important the message is. Does not
influence delivery speed.
A message object.
# How rapidly does the message need to be delivered?
#
envelope() %>%
subject("Deliver this immediately!") %>%
priority("urgent")
envelope(priority = "non-urgent") %>%
subject("No rush with this.")
# How much attention should be paid by recipient?
#
envelope() %>%
subject("Read this immediately!") %>%
importance("high")
envelope(importance = "low") %>%
subject("Not important at all. Just delete.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.