Learn R Programming

gmailr (version 0.5.0)

body: Get the body text of a message or draft

Description

Get the body text of a message or draft

Usage

body(x, ...)

## S3 method for class 'gmail_message': body(x, collapse = FALSE, ...)

## S3 method for class 'gmail_draft': body(x, ...)

Arguments

x
the object from which to retrieve the body
...
other parameters passed to methods
collapse
if `FALSE` will return each formatted body in list, if `TRUE` will collapse them together

Examples

Run this code
body(my_message)
body(my_draft)

Run the code above in your browser using DataLab