extract_emails: Extract emails contents

Description Usage Arguments Author(s) See Also Examples

Description

Extract content of manually downloaded emails.

Usage

1
extract_emails(release, save.dir = getwd(), extractor, ...)

Arguments

release

Name of the batch of release of emails; see details.

save.dir

Directory where to save the extracted text defaults to getwd()

extractor

Full path to pdf extractor pdftotext, see details.

...

additional parameters to pass to pdftotext.

Author(s)

John Coene jcoenep@gmail.com

See Also

get_xpdf, download_emails

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# download emails
download_emails("August") # August release

dir.create("emails_pdf") # dir to extract zip

unzip("August.zip", exdir = "./emails_pdf")

# create directory to store extracted contents
dir.create("emails_txt")

ext <- get_xpdf()

extarct_contents(emails = "HRC_Email_296", dest = "./emails_txt", extractor = ext)

## End(Not run)

rodham documentation built on May 1, 2019, 10:21 p.m.