Skip to contents

Add or query comments of message.

Usage

comments(msg, comments = NULL)

Arguments

msg

A message object.

comments

Comments for the message.

Value

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

See also

Examples

# Create a message and set the comments.
msg <- envelope() %>% comments("This is a comment")

# Retrieve the comments for a message.
comments(msg)
#> [1] "This is a comment"