addresses: Manages the addresses book

Description Usage Arguments Value Author(s) See Also Examples

Description

This function allows to print the content of the addresses book as well as to retrieve, define or remove one address.

Usage

1
addresses(x, overwrite = FALSE)

Arguments

x

an optional unquoted character string.

Value

If x is missing, returns the content of the addresses book. If x is a pseudo, it returns the corresponding email addresse. If x is a formula with a pseudo on the left hand side of the tild sign and an email address on the right hand side of it, it assigns this news entry to the address book.

Author(s)

Marc Choisy

See Also

The pseudo of an entry of the addreses book can be used in place of its corresponding email address to sending object with the send function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# When the addresses book is empty:
addresses()

# Assigning 3 entries to the addresses book:
addresses(pseudo1 ~ name1@domain1)
addresses(pseudo2 ~ name2@domain2)
addresses(pseudo3 ~ name3@domain3)

# Printing the content of the addresses book:
addresses()

# Trying to use a pseudo already present in the addresses book:
addresses(pseudo3 ~ name4@domain4, overwrite = TRUE)

# Replacing the address of a pseudo with a new address:
addresses(pseudo3 ~ name4@domain4)

# Retrieving an email address:
addresses(pseudo3)

choisy/marc documentation built on May 13, 2019, 5:31 p.m.