load_emails: load emails from text files

Description Usage Arguments Value Author(s) Examples

View source: R/load.R

Description

Load all emails.

Usage

1

Arguments

dir

directory where txt emails can be found.

Value

named list of emails; names are file names without extension.

Author(s)

John Coene [email protected]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# get xpdf extractor
ext <- get_xpdf()

# create
dir.create("emails")

# get emails released in august
emails_aug <- get_emails(release = "August", save.dir = "./emails",
                     extractor = ext)

# use manually downloaded extractor
# ext <- "C:/xpdfbin-win-3.04/bin64/pdftotext.exe"

# get emails related to Benghazi released in December
emails_bengh <- get_emails(release = "Benghazi", extractor = ext,
                           save.dir = "./emails")

contents <- load_emails(emails_bengh)

## End(Not run)

JohnCoene/rodham documentation built on July 19, 2017, 12:51 p.m.