powered by
Add or query subject of message.
subject( msg, subject = NULL, prefix = NA, suffix = NA, interpolate = TRUE, .open = "{{", .close = "}}", .envir = NULL )
A message object or the subject of the message object (if subject is NULL).
subject
NULL
A message object.
A subject for the message.
A subject prefix.
A subject suffix.
Whether or not to interpolate into input using glue.
The opening delimiter.
The closing delimiter.
Environment used for glue interpolation. Defaults to parent.frame().
glue
parent.frame()
The prefix and suffix can be used to add extra subject abbreviations.
prefix
suffix
to, from, cc, bcc and reply
to
from
cc
bcc
reply
# Create a message and set the subject msg <- envelope() %>% subject("Updated report") # Retrieve the subject for a message subject(msg)
Run the code above in your browser using DataLab