Learn R Programming

emayili (version 0.4.4)

subject: Add or query subject of message.

Description

Add or query subject of message.

Usage

subject(msg, subject = NULL)

Arguments

msg

A message object.

subject

A subject for the message.

Value

A message object or the subject of the message object (if subject is NULL).

See Also

to, from, cc, bcc and reply

Examples

Run this code
# NOT RUN {
library(magrittr)

# 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