parcel_create: Create a parcel to email

Description Usage Arguments Value Examples

View source: R/parcel_create.R

Description

Create a parcel to email

Usage

1
2
parcel_create(df, sender_name = NULL, sender_email = NULL, subject = NULL,
  bcc = NULL, template = NULL)

Arguments

df

data frame, information to be fed to the template (required)

sender_name

character, the sender's name (required)

sender_email

character, the sender's email (required)

subject

character, the email's subject

bcc

character, email address to bcc

template

character, template for email, using glue syntax (see example)

Value

data frame with information to email

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
df <- data.frame(
name = c("Lucy", "Karthik"),
email = c("[email protected]", "[email protected]")
)

template <- "
Dear {name},

This is a friendly email from me.

XO,
Lucy"

parcel_create(df,
            sender_name = "Lucy",
            sender_email = "[email protected]",
            subject = "Happy email!",
            template = template)

ropenscilabs/ponyexpress documentation built on May 28, 2017, 12:54 a.m.