Learn R Programming

emayili (version 0.9.3)

print.envelope: Print a message object

Description

The message body will be printed if details is TRUE or if the envelope_details option is TRUE.

Usage

# S3 method for envelope
print(x, details = NA, ...)

Arguments

x

A message object.

details

Whether or not to display full message content.

...

Further arguments passed to or from other methods.

Examples

Run this code
msg <- envelope() %>% text("Hello, World!")

print(msg)
print(msg, details = TRUE)

options(envelope_details = TRUE)
print(msg)

Run the code above in your browser using DataLab